Hide column
This commit is contained in:
parent
64f4497c76
commit
f73cf5983a
|
@ -165,7 +165,17 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const hideColumn = () => {
|
const hideColumn = () => {
|
||||||
datasource.actions.addSchemaMutation(column.name, { visible: false })
|
const { related } = column
|
||||||
|
const mutation = { visible: false }
|
||||||
|
if (!related) {
|
||||||
|
datasource.actions.addSchemaMutation(column.name, mutation)
|
||||||
|
} else {
|
||||||
|
datasource.actions.addSubSchemaMutation(
|
||||||
|
related.subField,
|
||||||
|
related.field,
|
||||||
|
mutation
|
||||||
|
)
|
||||||
|
}
|
||||||
datasource.actions.saveSchemaMutations()
|
datasource.actions.saveSchemaMutations()
|
||||||
open = false
|
open = false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue