Skip to content

Commit f18df0d

Browse files
caleballdrincanac
andauthored
Fix refetch queries object not matching (#1318)
Co-authored-by: Caleb Cox <[email protected]>
1 parent 4b61caf commit f18df0d

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/components/Contacts/ContactFlow/ContactFlow.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,7 @@ export const ContactFlow: React.FC<Props> = ({
8888
accountListId,
8989
attributes,
9090
},
91-
refetchQueries: () =>
92-
flowOptions.map((flowOption) => ({
93-
query: ContactsDocument,
94-
variables: {
95-
accountListId,
96-
contactsFilters: {
97-
status: flowOption.statuses,
98-
...selectedFilters,
99-
},
100-
},
101-
})),
91+
refetchQueries: [ContactsDocument],
10292
});
10393
enqueueSnackbar(t('Contact status updated!'), {
10494
variant: 'success',

0 commit comments

Comments
 (0)