From b1ae30a05ff2a3389038a0f62bc897e6fb81111e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 22 Oct 2024 14:13:16 -0400 Subject: [PATCH] Update dependency @pankod/refine-core to v3.103.0 (#2396) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: CP --- frontend/staff-dashboard/package.json | 2 +- .../flexiblepricing/statusmodal.tsx | 4 +- .../src/hooks/useDrfDataProvider.ts | 3 +- yarn.lock | 49 +------------------ 4 files changed, 7 insertions(+), 51 deletions(-) diff --git a/frontend/staff-dashboard/package.json b/frontend/staff-dashboard/package.json index 0e968ea809..11b035554f 100644 --- a/frontend/staff-dashboard/package.json +++ b/frontend/staff-dashboard/package.json @@ -6,7 +6,7 @@ "@ant-design/icons": "^5.0.0", "@craco/craco": "6.4.5", "@pankod/refine-antd": "3.22.1", - "@pankod/refine-core": "3.22.1", + "@pankod/refine-core": "3.103.0", "@pankod/refine-react-router-v6": "3.40.0", "@pankod/refine-simple-rest": "3.22.1", "@testing-library/jest-dom": "5.16.4", diff --git a/frontend/staff-dashboard/src/components/flexiblepricing/statusmodal.tsx b/frontend/staff-dashboard/src/components/flexiblepricing/statusmodal.tsx index 5da51d58f5..98b37b797a 100644 --- a/frontend/staff-dashboard/src/components/flexiblepricing/statusmodal.tsx +++ b/frontend/staff-dashboard/src/components/flexiblepricing/statusmodal.tsx @@ -57,7 +57,7 @@ export const FlexiblePricingStatusModal: React.FC { if (justification.length === 0 && status !== financialAssistanceRequestStatus.reset) { - displayToast({ + displayToast?.({ message: "Please choose a justification.", description: "Error", key: "bad-justification-error", @@ -69,7 +69,7 @@ export const FlexiblePricingStatusModal: React.FC { const queryFilters: { [key: string]: string } = {}; if (filters) { filters.map((filter) => { - if (filter.operator !== "or" && filter.value !== '') { + if (filter.operator !== "or" && filter.value !== '' && + "field" in filter) { const { field, operator, value } = filter; if (field === "q") { diff --git a/yarn.lock b/yarn.lock index 671b053f83..a67e05115b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3362,27 +3362,7 @@ __metadata: languageName: node linkType: hard -"@pankod/refine-core@npm:3.22.1": - version: 3.22.1 - resolution: "@pankod/refine-core@npm:3.22.1" - dependencies: - export-to-csv-fix-source-map: ^0.2.1 - humanize-string: ^2.1.0 - lodash: ^4.17.21 - lodash-es: ^4.17.21 - papaparse: ^5.3.0 - pluralize: ^8.0.0 - qs: ^6.10.1 - react-query: ^3.19.2 - tslib: ^2.3.1 - peerDependencies: - react: ^17.0.0 || ^18.0.0 - react-dom: ^17.0.0 || ^18.0.0 - checksum: 11b2de7710178b8886c1074258d477571db9b39ee3961840a9ba0e867f393db9f59287b1fb051f8e6d396d196e9e4da55cb99c675e1091e490903248be533232 - languageName: node - linkType: hard - -"@pankod/refine-core@npm:^3.22.1": +"@pankod/refine-core@npm:3.103.0, @pankod/refine-core@npm:^3.22.1": version: 3.103.0 resolution: "@pankod/refine-core@npm:3.103.0" dependencies: @@ -8201,15 +8181,6 @@ __metadata: languageName: node linkType: hard -"decamelize@npm:^2.0.0": - version: 2.0.0 - resolution: "decamelize@npm:2.0.0" - dependencies: - xregexp: 4.0.0 - checksum: e1d8274e6e6f80654fd5b96a6a3bef50f8979df10f1ab35fe2406f567df9588640a6f29e1414bec30983275e2041fb87e858df7cfd5661ea578196989d73de31 - languageName: node - linkType: hard - "decamelize@npm:^4.0.0": version: 4.0.0 resolution: "decamelize@npm:4.0.0" @@ -11543,15 +11514,6 @@ __metadata: languageName: node linkType: hard -"humanize-string@npm:^2.1.0": - version: 2.1.0 - resolution: "humanize-string@npm:2.1.0" - dependencies: - decamelize: ^2.0.0 - checksum: 75d6b6a12b1284e41b736eef0f99ca77609895ca6074eb314a08f2d6aefc68858003f1c5ead2027a16cab650ecbe9b92bece80f5ca99af700962647ee5f6ab56 - languageName: node - linkType: hard - "iconv-lite@npm:0.4.24": version: 0.4.24 resolution: "iconv-lite@npm:0.4.24" @@ -15155,7 +15117,7 @@ __metadata: "@ant-design/icons": ^5.0.0 "@craco/craco": 6.4.5 "@pankod/refine-antd": 3.22.1 - "@pankod/refine-core": 3.22.1 + "@pankod/refine-core": 3.103.0 "@pankod/refine-react-router-v6": 3.40.0 "@pankod/refine-simple-rest": 3.22.1 "@testing-library/jest-dom": 5.16.4 @@ -23544,13 +23506,6 @@ __metadata: languageName: node linkType: hard -"xregexp@npm:4.0.0": - version: 4.0.0 - resolution: "xregexp@npm:4.0.0" - checksum: ce644eb022fa3370dbf53e1b6f28d7a25dd6cca711ba463c129141429d11776a1239c604370bdcaf93c5028ff8d75cac2a10644377cb649b985c0094da5ef693 - languageName: node - linkType: hard - "xtend@npm:^4.0.0, xtend@npm:^4.0.1": version: 4.0.2 resolution: "xtend@npm:4.0.2"