column editor

This commit is contained in:
Jan Prochazka
2021-06-10 15:57:37 +02:00
parent 697a9438c6
commit 870e3ad666
4 changed files with 48 additions and 4 deletions

View File

@@ -35,4 +35,13 @@
</script>
<TableEditor tableInfo={showTable} setTableInfo={objectTypeField == 'tables' ? setEditorData : null} />
<TableEditor
tableInfo={showTable}
setTableInfo={objectTypeField == 'tables'
? tableInfoUpdater =>
setEditorData(tbl => {
if (tbl) return tableInfoUpdater(tbl);
return tableInfoUpdater(tableInfoWithGroupId);
})
: null}
/>