mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-22 16:38:21 +00:00
Add optional chaining operator to avoid crash while reading autogenerateColumns property
This commit is contained in:
parent
e0a4e90bf8
commit
b98d68ad04
1 changed files with 1 additions and 1 deletions
|
|
@ -291,7 +291,7 @@ export function Table({
|
|||
);
|
||||
|
||||
useEffect(() => {
|
||||
if (tableData.length != 0 && component.definition.properties.autogenerateColumns.value && mode === 'edit') {
|
||||
if (tableData.length != 0 && component.definition.properties.autogenerateColumns?.value && mode === 'edit') {
|
||||
autogenerateColumns(
|
||||
tableData,
|
||||
component.definition.properties.columns.value,
|
||||
|
|
|
|||
Loading…
Reference in a new issue