mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
fix: columns are regenerated if the user runs the query again
This commit is contained in:
parent
c500f9f584
commit
8e528f391c
1 changed files with 2 additions and 1 deletions
|
|
@ -69,7 +69,8 @@ export const Table = memo(
|
|||
}, [id, actions, setTableActions]);
|
||||
|
||||
useEffect(() => {
|
||||
if (useDynamicColumn || !isEqual(prevFirstRowOfTable, firstRowOfTable)) shouldAutogenerateColumns.current = true;
|
||||
if (useDynamicColumn || (!isEqual(prevFirstRowOfTable, firstRowOfTable) && !isEmpty(firstRowOfTable)))
|
||||
shouldAutogenerateColumns.current = true;
|
||||
}, [firstRowOfTable, useDynamicColumn, columnData, prevFirstRowOfTable]);
|
||||
|
||||
// Set column details to the table store. This is responsible for auto-generating columns
|
||||
|
|
|
|||
Loading…
Reference in a new issue