bugfix
This commit is contained in:
parent
8fc5be634e
commit
cfc04814c6
@ -43,7 +43,6 @@ function DropRow() {
|
|||||||
const source = getSchema(content.paths);
|
const source = getSchema(content.paths);
|
||||||
// console.log({ paths: content.paths, source });
|
// console.log({ paths: content.paths, source });
|
||||||
// schema.addProperty(source.name, source.toJSON());
|
// schema.addProperty(source.name, source.toJSON());
|
||||||
// source.parent.removeProperty(source.name);
|
|
||||||
// refresh();
|
// refresh();
|
||||||
|
|
||||||
const rowName = `row_${uid()}`;
|
const rowName = `row_${uid()}`;
|
||||||
@ -67,6 +66,7 @@ function DropRow() {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
source.parent.removeProperty(source.name);
|
||||||
refresh();
|
refresh();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -109,7 +109,7 @@ function DropRowColumn() {
|
|||||||
});
|
});
|
||||||
const len = Object.keys(schema.properties).length;
|
const len = Object.keys(schema.properties).length;
|
||||||
const properties = schema.mapProperties((p) => p);
|
const properties = schema.mapProperties((p) => p);
|
||||||
|
source.parent.removeProperty(source.name);
|
||||||
// schema.setProperties(newProperties);
|
// schema.setProperties(newProperties);
|
||||||
// console.log(properties);
|
// console.log(properties);
|
||||||
refresh();
|
refresh();
|
||||||
@ -174,6 +174,7 @@ function DropColumn() {
|
|||||||
|
|
||||||
// schema.setProperties(newProperties);
|
// schema.setProperties(newProperties);
|
||||||
// console.log(properties);
|
// console.log(properties);
|
||||||
|
source.parent.removeProperty(source.name);
|
||||||
refresh();
|
refresh();
|
||||||
|
|
||||||
properties.forEach((p) => {
|
properties.forEach((p) => {
|
||||||
@ -186,7 +187,6 @@ function DropColumn() {
|
|||||||
|
|
||||||
// console.log({ paths: content.paths, source });
|
// console.log({ paths: content.paths, source });
|
||||||
// schema.addProperty(source.name, source.toJSON());
|
// schema.addProperty(source.name, source.toJSON());
|
||||||
// source.parent.removeProperty(source.name);
|
|
||||||
// refresh();
|
// refresh();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user