Fix bulk delete to respect filters by using correct row count

Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-05 17:35:32 +00:00
co-authored by stnguyen90
parent 16569bbbc5
commit fb9bf42f13
@@ -744,9 +744,7 @@
) as Models.ColumnRelationship[];
$: emptyCellsCount =
$paginatedRows.virtualLength >= emptyCellsLimit
? 0
: emptyCellsLimit - $paginatedRows.virtualLength + (!$expandTabs ? 2 : 0);
$rows.total >= emptyCellsLimit ? 0 : emptyCellsLimit - $rows.total + (!$expandTabs ? 2 : 0);
$: canShowDatetimePopover = true;
@@ -778,7 +776,7 @@
bind:columns={$tableColumns}
loading={$spreadsheetLoading}
emptyCells={emptyCellsCount}
rowCount={$paginatedRows.virtualLength}
rowCount={$rows.total}
bottomActionClick={() => (showRowCreateSheet.show = true)}
on:columnsSwap={(order) => saveColumnsOrder(order.detail)}
on:columnsResize={(resize) => saveColumnsWidth(resize.detail)}