Merge pull request #8162 from Budibase/bug/sev3/edit-column-modal-state

Clear edit column modal on close/hide
This commit is contained in:
melohagan 2022-10-12 17:45:23 +01:00 committed by GitHub
commit 1832c82c6a
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@
import CreateEditRow from "./modals/CreateEditRow.svelte"
import CreateEditUser from "./modals/CreateEditUser.svelte"
import CreateEditColumn from "./modals/CreateEditColumn.svelte"
import { cloneDeep } from "lodash/fp"
import {
TableNames,
UNEDITABLE_USER_FIELDS,
@ -110,7 +111,7 @@
}
const editColumn = field => {
editableColumn = schema?.[field]
editableColumn = cloneDeep(schema?.[field])
if (editableColumn) {
editColumnModal.show()
}