mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-12 18:22:16 +01:00
update query keys to include org id, preventing stale data after organization switch
This commit is contained in:
@@ -12,7 +12,7 @@ export function useProjectMembersQuery(projectId: Ref<string | null> | string) {
|
||||
});
|
||||
|
||||
const query = useQuery({
|
||||
queryKey: ['projectMembers', projectIdValue],
|
||||
queryKey: computed(() => ['projectMembers', getCurrentOrganizationId(), projectIdValue.value]),
|
||||
queryFn: async () => {
|
||||
const organizationId = getCurrentOrganizationId();
|
||||
const pid = projectIdValue.value;
|
||||
|
||||
Reference in New Issue
Block a user