@timardex/cluemart-shared 1.4.91 → 1.4.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-PIL22ZS4.mjs → chunk-BCA2SXOG.mjs} +9 -5
- package/dist/chunk-BCA2SXOG.mjs.map +1 -0
- package/dist/graphql/index.cjs +8 -4
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.cjs +8 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-PIL22ZS4.mjs.map +0 -1
package/dist/hooks/index.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -3643,10 +3643,14 @@ var useRemoveParticipantFromChat = () => {
|
|
|
3643
3643
|
awaitRefetchQueries: true,
|
|
3644
3644
|
refetchQueries: (mutationResult) => {
|
|
3645
3645
|
const region = mutationResult?.data?.removeParticipantFromChat?.region;
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
{
|
|
3649
|
-
|
|
3646
|
+
const queries = [{ query: USER_CHATS }];
|
|
3647
|
+
if (region && region.trim() !== "") {
|
|
3648
|
+
queries.push({
|
|
3649
|
+
query: GET_CHATS_BY_REGION,
|
|
3650
|
+
variables: { region }
|
|
3651
|
+
});
|
|
3652
|
+
}
|
|
3653
|
+
return queries;
|
|
3650
3654
|
}
|
|
3651
3655
|
});
|
|
3652
3656
|
return { error, loading, removeParticipantFromChat };
|