Mirror of https://github.com/roostorg/coop github.com/roostorg/coop
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[Bug Fix] Refresh recent actions list after submitting an action (#285)

authored by

Juan Mrad and committed by
GitHub
15dbf59a 725bad99

+5
+5
client/src/components/ItemAction.tsx
··· 1 1 import { 2 + namedOperations, 2 3 useGQLBulkActionExecutionMutation, 3 4 useGQLBulkActionsFormDataQuery, 4 5 } from '@/graphql/generated'; ··· 23 24 24 25 const { data: queryData } = useGQLBulkActionsFormDataQuery(); 25 26 const [bulkAction, { loading }] = useGQLBulkActionExecutionMutation({ 27 + refetchQueries: [ 28 + namedOperations.Query.ItemActionHistory, 29 + namedOperations.Query.GetRecentDecisions, 30 + ], 26 31 onCompleted: (data) => { 27 32 const results = data?.bulkExecuteActions?.results ?? []; 28 33 const anyFailed = results.some((r) => r.success === false);