Skip to content

Commit

Permalink
fix: remove select multiple row (#79)
Browse files Browse the repository at this point in the history
* fix: remove select multiple row

* pr: proper indentation
  • Loading branch information
Kimthean authored Apr 8, 2024
1 parent 6d767a4 commit 268b894
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/query-result-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,9 @@ export default function ResultTable({
title: "Delete selected row(s)",
icon: LucideTrash2,
onClick: () => {
data.removeRow();
data.getSelectedRowIndex().forEach((index) => {
data.removeRow(index);
});
},
},
])(event);
Expand Down
4 changes: 3 additions & 1 deletion src/components/tabs/table-data-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ export default function TableDataWindow({ tableName }: TableDataContentProps) {

const onRemoveRow = useCallback(() => {
if (data) {
data.removeRow();
data.getSelectedRowIndex().forEach((index) => {
data.removeRow(index);
});
}
}, [data]);

Expand Down

0 comments on commit 268b894

Please sign in to comment.