Edit clone of column
This commit is contained in:
parent
c07ba7ed08
commit
8210233f36
|
@ -8,6 +8,7 @@
|
||||||
import CreateEditRow from "./modals/CreateEditRow.svelte"
|
import CreateEditRow from "./modals/CreateEditRow.svelte"
|
||||||
import CreateEditUser from "./modals/CreateEditUser.svelte"
|
import CreateEditUser from "./modals/CreateEditUser.svelte"
|
||||||
import CreateEditColumn from "./modals/CreateEditColumn.svelte"
|
import CreateEditColumn from "./modals/CreateEditColumn.svelte"
|
||||||
|
import { cloneDeep } from "lodash/fp"
|
||||||
import {
|
import {
|
||||||
TableNames,
|
TableNames,
|
||||||
UNEDITABLE_USER_FIELDS,
|
UNEDITABLE_USER_FIELDS,
|
||||||
|
@ -110,7 +111,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const editColumn = field => {
|
const editColumn = field => {
|
||||||
editableColumn = schema?.[field]
|
editableColumn = cloneDeep(schema?.[field])
|
||||||
if (editableColumn) {
|
if (editableColumn) {
|
||||||
editColumnModal.show()
|
editColumnModal.show()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue