update query keys to include org id, preventing stale data after organization switch

This commit is contained in:
Gregor Vostrak
2026-02-18 12:53:22 +01:00
parent 1afc16573a
commit 0fc325363d
9 changed files with 15 additions and 15 deletions

View File

@@ -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;