#926 fixed App crashes when trying to 'Open Structure' in a readonly connection

This commit is contained in:
SPRINX0\prochazka
2024-10-29 08:26:55 +01:00
parent b1cd60d0dd
commit 803a272331

View File

@@ -176,7 +176,7 @@
schemaList={isCreateTable && schemaList?.length >= 0 ? schemaList : null}
values={_.pick(tableInfo, ['schemaName', 'pureName', ...(tableFormOptions ?? []).map(x => x.name)])}
onChangeValues={vals => {
if (!_.isEmpty(vals)) {
if (!_.isEmpty(vals) && setTableInfo) {
setTableInfo(tbl => ({ ...tbl, ...vals }));
}
}}