Merge pull request #649 from ToolJet/bugfix/action-button-position-change-recompute

Recompute table columns whenever action button position is changed
This commit is contained in:
Sherfin Shamsudeen 2021-08-31 17:17:49 +05:30 committed by GitHub
commit c7393ac66a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -487,7 +487,8 @@ export function Table({
const columns = useMemo(
() => [...leftActionsCellData, ...columnData, ...rightActionsCellData],
[JSON.stringify(columnData),
leftActionsCellData.length + rightActionsCellData.length,
leftActionsCellData.length,
rightActionsCellData.length,
componentState.changeSet,
JSON.stringify(component.definition.properties.columns)
] // Hack: need to fix