Skip to content

Commit

Permalink
fix: remove final row during directory search (#1962)
Browse files Browse the repository at this point in the history
A bug prevented the final row from being removed while searching for
directory files. Additionally, a console error would come up when the
directory was filtered far enough. This corrects a react dependency so
that is no longer an issue.
  • Loading branch information
oneirocosm authored Feb 14, 2025
1 parent 3062286 commit 2897053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/app/view/preview/directorypreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ function DirectoryTable({
return;
}
}
}, [data]);
}, [table]);
const columnSizeVars = useMemo(() => {
const headers = table.getFlatHeaders();
const colSizes: { [key: string]: number } = {};
Expand Down

0 comments on commit 2897053

Please sign in to comment.