Skip to content

Commit

Permalink
fix: display right reports in the second tab
Browse files Browse the repository at this point in the history
  • Loading branch information
ledouxm committed Apr 11, 2024
1 parent 64b18b6 commit 84fd842
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/frontend/src/features/ReportList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export const MyReports = () => {
};

export const AllReports = () => {
const allReports = useLiveQuery(db.report.liveMany());
const user = useUser()!;
const allReports = useLiveQuery(db.report.liveMany({ where: { created_by_id: { not: user.id } } }));

if (allReports.error) {
console.error(allReports.error);
Expand Down

0 comments on commit 84fd842

Please sign in to comment.