mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-06 06:48:21 +00:00
Discarding changes should also refresh table data
This commit is contained in:
parent
8951f89792
commit
46cb7fd64a
1 changed files with 2 additions and 2 deletions
|
|
@ -501,7 +501,7 @@ export function Table({
|
|||
] // Hack: need to fix
|
||||
);
|
||||
|
||||
const data = useMemo(() => tableData, [tableData.length]);
|
||||
const data = useMemo(() => tableData, [tableData.length, componentState.changeSet]);
|
||||
|
||||
const computedStyles = {
|
||||
color,
|
||||
|
|
@ -731,7 +731,7 @@ export function Table({
|
|||
Save Changes
|
||||
</button>
|
||||
<button className="btn btn-light btn-sm mx-2" onClick={() => handleChangesDiscarded()}>
|
||||
Cancel
|
||||
Discard changes
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue