@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.
@@ -1,5 +1,5 @@
1
1
  import "../chunk-4LT5GOOP.mjs";
2
- import "../chunk-PIL22ZS4.mjs";
2
+ import "../chunk-BCA2SXOG.mjs";
3
3
  import "../chunk-DWO35OY4.mjs";
4
4
  import "../chunk-I7WE3EBR.mjs";
5
5
  import {
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
- return [
3647
- { query: USER_CHATS },
3648
- { query: GET_CHATS_BY_REGION, skip: !region, variables: { region } }
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 };