From 0f32eca30561e9fb61682460204f4ddf4a776bb2 Mon Sep 17 00:00:00 2001 From: Ben Snyder Date: Mon, 13 May 2024 16:15:14 -0400 Subject: [PATCH] fix: queryCache should be QueryCache --- .../containers/Alerts/Accounts/AccountBulkActivateAlert.tsx | 4 ++-- .../src/containers/Alerts/Accounts/AccountBulkDeleteAlert.tsx | 4 ++-- .../containers/Alerts/Accounts/AccountBulkInactivateAlert.tsx | 4 ++-- .../src/containers/Alerts/Estimates/EstimateApproveAlert.tsx | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/webapp/src/containers/Alerts/Accounts/AccountBulkActivateAlert.tsx b/packages/webapp/src/containers/Alerts/Accounts/AccountBulkActivateAlert.tsx index 2feebd5462..79a7dfc478 100644 --- a/packages/webapp/src/containers/Alerts/Accounts/AccountBulkActivateAlert.tsx +++ b/packages/webapp/src/containers/Alerts/Accounts/AccountBulkActivateAlert.tsx @@ -2,7 +2,7 @@ import React, { useState } from 'react'; import intl from 'react-intl-universal'; import { Intent, Alert } from '@blueprintjs/core'; -import { queryCache } from 'react-query'; +import { QueryCache } from 'react-query'; import { FormattedMessage as T, AppToaster } from '@/components'; import withAccountsActions from '@/containers/Accounts/withAccountsActions'; @@ -38,7 +38,7 @@ function AccountBulkActivateAlert({ message: intl.get('the_accounts_has_been_successfully_activated'), intent: Intent.SUCCESS, }); - queryCache.invalidateQueries('accounts-table'); + QueryCache.invalidateQueries('accounts-table'); }) .catch((errors) => {}) .finally(() => { diff --git a/packages/webapp/src/containers/Alerts/Accounts/AccountBulkDeleteAlert.tsx b/packages/webapp/src/containers/Alerts/Accounts/AccountBulkDeleteAlert.tsx index 20e582de7f..746bb1046b 100644 --- a/packages/webapp/src/containers/Alerts/Accounts/AccountBulkDeleteAlert.tsx +++ b/packages/webapp/src/containers/Alerts/Accounts/AccountBulkDeleteAlert.tsx @@ -3,7 +3,7 @@ import React, { useState } from 'react'; import { FormattedMessage as T } from '@/components'; import intl from 'react-intl-universal'; import { Intent, Alert } from '@blueprintjs/core'; -import { queryCache } from 'react-query'; +import { QueryCache } from 'react-query'; import { AppToaster } from '@/components'; import { handleDeleteErrors } from '@/containers/Accounts/utils'; @@ -48,7 +48,7 @@ function AccountBulkDeleteAlert({ message: intl.get('the_accounts_has_been_successfully_deleted'), intent: Intent.SUCCESS, }); - queryCache.invalidateQueries('accounts-table'); + QueryCache.invalidateQueries('accounts-table'); }) .catch((errors) => { handleDeleteErrors(errors); diff --git a/packages/webapp/src/containers/Alerts/Accounts/AccountBulkInactivateAlert.tsx b/packages/webapp/src/containers/Alerts/Accounts/AccountBulkInactivateAlert.tsx index b51d34d189..3fc74b0446 100644 --- a/packages/webapp/src/containers/Alerts/Accounts/AccountBulkInactivateAlert.tsx +++ b/packages/webapp/src/containers/Alerts/Accounts/AccountBulkInactivateAlert.tsx @@ -3,7 +3,7 @@ import React, { useState } from 'react'; import { FormattedMessage as T } from '@/components'; import intl from 'react-intl-universal'; import { Intent, Alert } from '@blueprintjs/core'; -import { queryCache } from 'react-query'; +import { QueryCache } from 'react-query'; import { AppToaster } from '@/components'; import withAccountsActions from '@/containers/Accounts/withAccountsTableActions'; @@ -39,7 +39,7 @@ function AccountBulkInactivateAlert({ message: intl.get('the_accounts_have_been_successfully_inactivated'), intent: Intent.SUCCESS, }); - queryCache.invalidateQueries('accounts-table'); + QueryCache.invalidateQueries('accounts-table'); }) .catch((errors) => {}) .finally(() => { diff --git a/packages/webapp/src/containers/Alerts/Estimates/EstimateApproveAlert.tsx b/packages/webapp/src/containers/Alerts/Estimates/EstimateApproveAlert.tsx index 7c8a19e662..f3b4360bab 100644 --- a/packages/webapp/src/containers/Alerts/Estimates/EstimateApproveAlert.tsx +++ b/packages/webapp/src/containers/Alerts/Estimates/EstimateApproveAlert.tsx @@ -3,7 +3,7 @@ import React, { useCallback } from 'react'; import intl from 'react-intl-universal'; import { AppToaster, FormattedMessage as T } from '@/components'; import { Intent, Alert } from '@blueprintjs/core'; -import { queryCache } from 'react-query'; +import { QueryCache } from 'react-query'; import { useApproveEstimate } from '@/hooks/query'; @@ -40,7 +40,7 @@ function EstimateApproveAlert({ message: intl.get('the_estimate_has_been_approved_successfully'), intent: Intent.SUCCESS, }); - queryCache.invalidateQueries('estimates-table'); + QueryCache.invalidateQueries('estimates-table'); }) .catch((error) => {}) .finally(() => {