cartodb-4.42/lib/assets/javascripts/dashboard/views/public-dataset/public-carto-table-metadata.js
2024-04-06 05:25:13 +00:00

26 lines
606 B
JavaScript

const CartoTableMetadata = require('dashboard/views/public-dataset/carto-table-metadata');
const CartoTableData = require('dashboard/data/table/carto-table-data');
module.exports = CartoTableMetadata.extend({
fetch: function () {
this.trigger('sync');
// nothing to fetch here
},
data: function () {
if (this._data === undefined) {
this._data = new CartoTableData(null, {
table: this,
configModel: this._configModel
});
this._data.fetch = function () { };
}
if (this.sqlView) {
return this.sqlView;
}
return this._data;
}
});