mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
Fix backend-sync
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/* eslint no-console: 0 */
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { fields } from './explorev2/stores/controls';
|
||||
import { controls } from './explorev2/stores/controls';
|
||||
|
||||
function exportFile(fileLocation, content) {
|
||||
fs.writeFile(fileLocation, content, function (err) {
|
||||
@@ -19,7 +19,7 @@ function main() {
|
||||
if (!fs.existsSync(dir)) {
|
||||
fs.mkdirSync(dir);
|
||||
}
|
||||
const blob = { fields };
|
||||
const blob = { controls };
|
||||
exportFile(APP_DIR + '/../backendSync.json', JSON.stringify(blob, null, 2));
|
||||
}
|
||||
main();
|
||||
|
||||
Reference in New Issue
Block a user