mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 20:52:14 +01:00
update query keys to include org id, preventing stale data after organization switch
This commit is contained in:
@@ -37,7 +37,7 @@ const pageLimit = 15;
|
||||
const currentPage = ref(1);
|
||||
|
||||
const { data: reportsResponse } = useQuery<ReportIndexResponse>({
|
||||
queryKey: ['reports', currentPage],
|
||||
queryKey: computed(() => ['reports', getCurrentOrganizationId(), currentPage.value]),
|
||||
enabled: !!getCurrentOrganizationId(),
|
||||
queryFn: () =>
|
||||
api.getReports({
|
||||
|
||||
Reference in New Issue
Block a user