Skip to content

Commit

Permalink
make it more stable
Browse files Browse the repository at this point in the history
Signed-off-by: farodin91 <[email protected]>
  • Loading branch information
farodin91 committed Nov 22, 2024
1 parent 2bea11e commit abddc30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/common/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export default function Table<RowItem extends Record<string, any>>({
positionActionsColumn: 'last',
renderToolbarInternalActions: table => {
const isSomeRowsSelected =
tableProps.enableRowSelection && table.table.getIsSomeRowsSelected();
tableProps.enableRowSelection && table.table.getSelectedRowModel().rows.length != 0;

Check warning on line 240 in frontend/src/components/common/Table/Table.tsx

View workflow job for this annotation

GitHub Actions / lint (20.x, ubuntu-22.04)

Expected '!==' and instead saw '!='
if (isSomeRowsSelected) {
const renderRowSelectionToolbar = tableProps.renderRowSelectionToolbar;
if (renderRowSelectionToolbar !== undefined) {
Expand Down

0 comments on commit abddc30

Please sign in to comment.