Make sure group is refreshed after action
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
75296498c4
commit
4be5cc787e
|
@ -55,7 +55,10 @@ export function useGroup(
|
|||
name: unref(name),
|
||||
...options,
|
||||
}),
|
||||
() => ({ enabled: unref(name) !== undefined && unref(name) !== "" })
|
||||
() => ({
|
||||
enabled: unref(name) !== undefined && unref(name) !== "",
|
||||
fetchPolicy: "cache-and-network",
|
||||
})
|
||||
);
|
||||
const group = computed(() => result.value?.group);
|
||||
return { group, error, loading, onResult, onError, refetch };
|
||||
|
|
Loading…
Reference in a new issue