Skip to content

Commit 6b9f849

Browse files
authored
[Comp-783] add filters to key for useStaffUsersData in switch (#688)
1 parent bd0a5ca commit 6b9f849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compliance-web/src/hooks/useStaff.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const useStaffUsersData = (filters: {
4444
otherPositions: true,
4545
}) => {
4646
return useQuery({
47-
queryKey: ["staff-users"],
47+
queryKey: ["staff-users", filters],
4848
queryFn: async () => {
4949
let staffUsers = await fetchStaffUsers();
5050
staffUsers = staffUsers.sort((a, b) => a.name.localeCompare(b.name));

0 commit comments

Comments
 (0)