fix: selection and deletion bug on spreadsheet.

This commit is contained in:
Darshan committed 2025-11-06 10:57:33 +05:30
1 parent 28d90a2e9a
commit 6832224256
1 file changed
+8 -1
@@ -104,9 +104,16 @@
};
$: rows = writable(data.rows);
$: if (rows) {
$: if ($rows) {
paginatedRows.clear();
paginatedRows.setPage(1, $rows.rows);
const hashedKey = hash($rows.total.toString());
if ($spreadsheetRenderKey !== hashedKey) {
/* reset ui when the underlying data changes */
spreadsheetRenderKey.set(hash(data.rows.total.toString()));
}
}
const tableId = page.params.table;