Skip to content

Commit aa96902

Browse files
authored
fix: unique dashboard query key (#53)
1 parent 0c522c8 commit aa96902

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • frontend/src/components/dashboard-widget

frontend/src/components/dashboard-widget/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const DashboardWidget: React.FC<IDashboardWidgetProps> = ({
4343
});
4444

4545
const { data, isLoading } = useQuery({
46-
queryKey: ["/dashboard-widget", queryString],
46+
queryKey: ["/dashboard-widget", widget.key, queryString],
4747
queryFn: () => getFetcher(`/dashboard-widget/${widget.key}?${queryString}`),
4848
refetchOnWindowFocus: false,
4949
});

0 commit comments

Comments
 (0)