We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
`import { BooleanInput, SelectArrayInput, SelectInput, TextInput, } from "react-admin";
const stringValuePlans = localStorage.getItem("hotelPlans"); let plans = []; if (stringValuePlans) { plans = JSON.parse(stringValuePlans); console.log(plans); }
let subscriptionStateChoices = [ { id: "future", name: "Future", }, { id: "in_trial", name: "In trial", }, { id: "active", name: "Active", }, { id: "non_renewing", name: "Non renewing", }, { id: "paused", name: "Paused", }, { id: "cancelled", name: "Cancelled", }, ];
export const postFilters = [ , , <SelectArrayInput key="name" source="name" label="Select plan" choices={plans?.map((plan: any) => ({ id: plan?.id, name: plan?.name }))} alwaysOn />, , , , ]; ` console.js:213 TypeError: flatFilter[key].match is not a function at index.ts:41:182 at Array.map () at composeFilter (index.ts:34:34) at Object.getList (index.ts:68:15) at Proxy. (useDataProvider.ts:103:30) at Object.queryFn (useGetList.ts:75:18) at Object.fetchFn2 [as fn] (query.js:300:29) at run2 (retryer.js:95:31) at new Retryer2 (retryer.js:156:3) at Query2.fetch2 [as fetch] (query.js:332:20) overrideMethod @ console.js:213 (anonymous) @ useDataProvider.ts:133 (anonymous) @ useGetList.ts:75 fetchFn2 @ query.js:300 run2 @ retryer.js:95 Retryer2 @ retryer.js:156 fetch2 @ query.js:332 executeFetch @ queryObserver.js:199 fetch2 @ queryObserver.js:188 refetch2 @ queryObserver.js:168 onFocus @ query.js:153 (anonymous) @ queryCache.js:131 (anonymous) @ queryCache.js:130 batch2 @ notifyManager.js:25 onFocus @ queryCache.js:129 (anonymous) @ queryClient.js:32 (anonymous) @ focusManager.js:76 onFocus @ focusManager.js:75 (anonymous) @ focusManager.js:61 listener2 @ focusManager.js:17 Show 20 more frames Show less console.js:213 Error: The dataProvider threw an error. It should return a rejected Promise instead. at Proxy. (useDataProvider.ts:135:31) at Object.queryFn (useGetList.ts:75:18) at Object.fetchFn2 [as fn] (query.js:300:29) at run2 (retryer.js:95:31) at new Retryer2 (retryer.js:156:3) at Query2.fetch2 [as fetch] (query.js:332:20) at QueryObserver2.executeFetch (queryObserver.js:199:37) at QueryObserver2.fetch2 [as fetch] (queryObserver.js:188:17) at QueryObserver2.refetch2 [as refetch] (queryObserver.js:168:17) at Query2.onFocus (query.js:153:16) overrideMethod @ console.js:213 onError @ query.js:358 reject2 @ retryer.js:67 (anonymous) @ retryer.js:132 Promise.catch (async) run2 @ retryer.js:116 Retryer2 @ retryer.js:156 fetch2 @ query.js:332 executeFetch @ queryObserver.js:199 fetch2 @ queryObserver.js:188 refetch2 @ queryObserver.js:168 onFocus @ query.js:153 (anonymous) @ queryCache.js:131 (anonymous) @ queryCache.js:130 batch2 @ notifyManager.js:25 onFocus @ queryCache.js:129 (anonymous) @ queryClient.js:32 (anonymous) @ focusManager.js:76 onFocus @ focusManager.js:75 (anonymous) @ focusManager.js:61 listener2 @ focusManager.js:17 Show 20 more frames Show less 1691570057209-Logo.png:1 GET http://localhost:5173/aVALIp0BzvatU65HC8VrSmk-SMg=/240x240/smart/rh-staging/2213774826167296/1691570057209-Logo.png 404 (Not Found) Image (async) commitMount @ react-dom.development.js:11038 commitLayoutEffectOnFiber @ react-dom.development.js:23407 commitLayoutMountEffects_complete @ react-dom.development.js:24688 commitLayoutEffects_begin @ react-dom.development.js:24674 commitLayoutEffects_begin @ react-dom.development.js:24656 commitLayoutEffects @ react-dom.development.js:24612 commitRootImpl @ react-dom.development.js:26823 commitRoot @ react-dom.development.js:26682 finishConcurrentRender @ react-dom.development.js:25981 performConcurrentWorkOnRoot @ react-dom.development.js:25809 workLoop @ scheduler.development.js:266 flushWork @ scheduler.development.js:239 performWorkUntilDeadline @ scheduler.development.js:533 Show 13 more frames Show less console.js:213 TypeError: flatFilter[key].match is not a function at index.ts:41:182 at Array.map () at composeFilter (index.ts:34:34) at Object.getList (index.ts:68:15) at Proxy. (useDataProvider.ts:103:30) at Object.queryFn (useGetList.ts:75:18) at Object.fetchFn2 [as fn] (query.js:300:29) at run2 (retryer.js:95:31) at new Retryer2 (retryer.js:156:3) at Query2.fetch2 [as fetch] (query.js:332:20) '\n at ListBase (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:14880:25)\n at List3 (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:146315:24)\n at ListHotels (http://localhost:5173/src/pages/HotelsList/index.tsx?t=1696832136728:26:3)\n at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3251:5)\n at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3669:5)\n at ResourceContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20776:25)\n at Resource (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20792:26)\n at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3251:5)\n at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3669:5)\n at Suspense\n at ErrorBoundary2 (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:54281:35)\n at div\n at main\n at div\n at div\n at http://localhost:5173/node_modules/.vite/deps/chunk-MRX2TNXS.js?v=59557cab:4532:50\n at Layout (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:54679:20)\n at div\n at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3251:5)\n at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3669:5)\n at CoreAdminRoutes (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20428:7)\n at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3251:5)\n at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3669:5)\n at CoreAdminUI (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20502:22)\n at div\n at http://localhost:5173/node_modules/.vite/deps/chunk-MRX2TNXS.js?v=59557cab:4532:50\n at ScopedCssBaseline2 (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:41677:17)\n at AdminUI (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:146902:17)\n at ThemeProvider2 (http://localhost:5173/node_modules/.vite/deps/chunk-MRX2TNXS.js?v=59557cab:7739:5)\n at ThemeProvider3 (http://localhost:5173/node_modules/.vite/deps/chunk-MRX2TNXS.js?v=59557cab:7826:5)\n at ThemeProvider (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:4054:12)\n at ThemeProvider2 (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:55107:24)\n at ResourceDefinitionContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20023:19)\n at NotificationContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:1502:25)\n at I18nContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:22710:19)\n at Router (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3616:15)\n at HistoryRouter (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6597:21)\n at InternalRouter (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6663:25)\n at BasenameContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6632:25)\n at AdminRouter (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6649:24)\n at QueryClientProvider2 (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6028:25)\n at PreferencesEditorContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:19934:25)\n at StoreContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:1363:22)\n at CoreAdminContext (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20066:32)\n at AdminContext (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:146939:21)\n at Admin (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:147222:28)\n at App' overrideMethod @ console.js:213 (anonymous) @ useDataProvider.ts:133 (anonymous) @ useGetList.ts:75 fetchFn2 @ query.js:300 run2 @ retryer.js:95 Retryer2 @ retryer.js:156 fetch2 @ query.js:332 executeFetch @ queryObserver.js:199 setOptions @ queryObserver.js:85 (anonymous) @ useBaseQuery.js:78 commitHookEffectListMount @ react-dom.development.js:23150 commitPassiveMountOnFiber @ react-dom.development.js:24926 commitPassiveMountEffects_complete @ react-dom.development.js:24891 commitPassiveMountEffects_begin @ react-dom.development.js:24878 commitPassiveMountEffects @ react-dom.development.js:24866 flushPassiveEffectsImpl @ react-dom.development.js:27039 flushPassiveEffects @ react-dom.development.js:26984 (anonymous) @ react-dom.development.js:26769 workLoop @ scheduler.development.js:266 flushWork @ scheduler.development.js:239 performWorkUntilDeadline @ scheduler.development.js:533 Show 21 more frames Show less console.js:213 Error: The dataProvider threw an error. It should return a rejected Promise instead. at Proxy. (useDataProvider.ts:135:31) at Object.queryFn (useGetList.ts:75:18) at Object.fetchFn2 [as fn] (query.js:300:29) at run2 (retryer.js:95:31) at new Retryer2 (retryer.js:156:3) at Query2.fetch2 [as fetch] (query.js:332:20) at QueryObserver2.executeFetch (queryObserver.js:199:37) at QueryObserver2.setOptions (queryObserver.js:85:12) at useBaseQuery.js:78:14 at commitHookEffectListMount (react-dom.development.js:23150:26) overrideMethod @ console.js:213 onError @ query.js:358 reject2 @ retryer.js:67 (anonymous) @ retryer.js:132 Promise.catch (async) run2 @ retryer.js:116 Retryer2 @ retryer.js:156 fetch2 @ query.js:332 executeFetch @ queryObserver.js:199 setOptions @ queryObserver.js:85 (anonymous) @ useBaseQuery.js:78 commitHookEffectListMount @ react-dom.development.js:23150 commitPassiveMountOnFiber @ react-dom.development.js:24926 commitPassiveMountEffects_complete @ react-dom.development.js:24891 commitPassiveMountEffects_begin @ react-dom.development.js:24878 commitPassiveMountEffects @ react-dom.development.js:24866 flushPassiveEffectsImpl @ react-dom.development.js:27039 flushPassiveEffects @ react-dom.development.js:26984 (anonymous) @ react-dom.development.js:26769 workLoop @ scheduler.development.js:266 flushWork @ scheduler.development.js:239 performWorkUntilDeadline @ scheduler.development.js:533 Show 21 more frames Show less 1691570057209-Logo.png:1 GET http://localhost:5173/aVALIp0BzvatU65HC8VrSmk-SMg=/240x240/smart/rh-staging/2213774826167296/1691570057209-Logo.png 404 (Not Found) Image (async) commitMount @ react-dom.development.js:11038 commitLayoutEffectOnFiber @ react-dom.development.js:23407 commitLayoutMountEffects_complete @ react-dom.development.js:24688 commitLayoutEffects_begin @ react-dom.development.js:24674 commitLayoutEffects_begin @ react-dom.development.js:24656 commitLayoutEffects @ react-dom.development.js:24612 commitRootImpl @ react-dom.development.js:26823 commitRoot @ react-dom.development.js:26682 finishConcurrentRender @ react-dom.development.js:25981 performConcurrentWorkOnRoot @ react-dom.development.js:25809 workLoop @ scheduler.development.js:266 flushWork @ scheduler.development.js:239 performWorkUntilDeadline @ scheduler.development.js:533 Show 13 more frames Show less console.js:213 TypeError: flatFilter[key].match is not a function at index.ts:41:182 at Array.map () at composeFilter (index.ts:34:34) at Object.getList (index.ts:68:15) at Proxy. (useDataProvider.ts:103:30) at Object.queryFn (useGetList.ts:75:18) at Object.fetchFn2 [as fn] (query.js:300:29) at run2 (retryer.js:95:31) at new Retryer2 (retryer.js:156:3) at Query2.fetch2 [as fetch] (query.js:332:20) '\n at ListBase (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:14880:25)\n at List3 (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:146315:24)\n at ListHotels (http://localhost:5173/src/pages/HotelsList/index.tsx?t=1696832136728:26:3)\n at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3251:5)\n at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3669:5)\n at ResourceContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20776:25)\n at Resource (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20792:26)\n at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3251:5)\n at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3669:5)\n at Suspense\n at ErrorBoundary2 (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:54281:35)\n at div\n at main\n at div\n at div\n at http://localhost:5173/node_modules/.vite/deps/chunk-MRX2TNXS.js?v=59557cab:4532:50\n at Layout (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:54679:20)\n at div\n at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3251:5)\n at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3669:5)\n at CoreAdminRoutes (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20428:7)\n at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3251:5)\n at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3669:5)\n at CoreAdminUI (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20502:22)\n at div\n at http://localhost:5173/node_modules/.vite/deps/chunk-MRX2TNXS.js?v=59557cab:4532:50\n at ScopedCssBaseline2 (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:41677:17)\n at AdminUI (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:146902:17)\n at ThemeProvider2 (http://localhost:5173/node_modules/.vite/deps/chunk-MRX2TNXS.js?v=59557cab:7739:5)\n at ThemeProvider3 (http://localhost:5173/node_modules/.vite/deps/chunk-MRX2TNXS.js?v=59557cab:7826:5)\n at ThemeProvider (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:4054:12)\n at ThemeProvider2 (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:55107:24)\n at ResourceDefinitionContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20023:19)\n at NotificationContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:1502:25)\n at I18nContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:22710:19)\n at Router (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3616:15)\n at HistoryRouter (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6597:21)\n at InternalRouter (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6663:25)\n at BasenameContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6632:25)\n at AdminRouter (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6649:24)\n at QueryClientProvider2 (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6028:25)\n at PreferencesEditorContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:19934:25)\n at StoreContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:1363:22)\n at CoreAdminContext (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20066:32)\n at AdminContext (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:146939:21)\n at Admin (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:147222:28)\n at App' overrideMethod @ console.js:213 (anonymous) @ useDataProvider.ts:133 (anonymous) @ useGetList.ts:75 fetchFn2 @ query.js:300 run2 @ retryer.js:95 Retryer2 @ retryer.js:156 fetch2 @ query.js:332 executeFetch @ queryObserver.js:199 setOptions @ queryObserver.js:85 (anonymous) @ useBaseQuery.js:78 commitHookEffectListMount @ react-dom.development.js:23150 commitPassiveMountOnFiber @ react-dom.development.js:24926 commitPassiveMountEffects_complete @ react-dom.development.js:24891 commitPassiveMountEffects_begin @ react-dom.development.js:24878 commitPassiveMountEffects @ react-dom.development.js:24866 flushPassiveEffectsImpl @ react-dom.development.js:27039 flushPassiveEffects @ react-dom.development.js:26984 performConcurrentWorkOnRoot @ react-dom.development.js:25709 workLoop @ scheduler.development.js:266 flushWork @ scheduler.development.js:239 performWorkUntilDeadline @ scheduler.development.js:533 Show 21 more frames Show less console.js:213 Error: The dataProvider threw an error. It should return a rejected Promise instead. at Proxy. (useDataProvider.ts:135:31) at Object.queryFn (useGetList.ts:75:18) at Object.fetchFn2 [as fn] (query.js:300:29) at run2 (retryer.js:95:31) at new Retryer2 (retryer.js:156:3) at Query2.fetch2 [as fetch] (query.js:332:20) at QueryObserver2.executeFetch (queryObserver.js:199:37) at QueryObserver2.setOptions (queryObserver.js:85:12) at useBaseQuery.js:78:14 at commitHookEffectListMount (react-dom.development.js:23150:26)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
`import {
BooleanInput,
SelectArrayInput,
SelectInput,
TextInput,
} from "react-admin";
const stringValuePlans = localStorage.getItem("hotelPlans");
let plans = [];
if (stringValuePlans) {
plans = JSON.parse(stringValuePlans);
console.log(plans);
}
let subscriptionStateChoices = [
{
id: "future",
name: "Future",
},
{
id: "in_trial",
name: "In trial",
},
{
id: "active",
name: "Active",
},
{
id: "non_renewing",
name: "Non renewing",
},
{
id: "paused",
name: "Paused",
},
{
id: "cancelled",
name: "Cancelled",
},
];
export const postFilters = [
,
,
<SelectArrayInput
key="name"
source="name"
label="Select plan"
choices={plans?.map((plan: any) => ({ id: plan?.id, name: plan?.name }))}
alwaysOn
/>,
,
,
,
];
`
console.js:213 TypeError: flatFilter[key].match is not a function
at index.ts:41:182
at Array.map ()
at composeFilter (index.ts:34:34)
at Object.getList (index.ts:68:15)
at Proxy. (useDataProvider.ts:103:30)
at Object.queryFn (useGetList.ts:75:18)
at Object.fetchFn2 [as fn] (query.js:300:29)
at run2 (retryer.js:95:31)
at new Retryer2 (retryer.js:156:3)
at Query2.fetch2 [as fetch] (query.js:332:20)
overrideMethod @ console.js:213
(anonymous) @ useDataProvider.ts:133
(anonymous) @ useGetList.ts:75
fetchFn2 @ query.js:300
run2 @ retryer.js:95
Retryer2 @ retryer.js:156
fetch2 @ query.js:332
executeFetch @ queryObserver.js:199
fetch2 @ queryObserver.js:188
refetch2 @ queryObserver.js:168
onFocus @ query.js:153
(anonymous) @ queryCache.js:131
(anonymous) @ queryCache.js:130
batch2 @ notifyManager.js:25
onFocus @ queryCache.js:129
(anonymous) @ queryClient.js:32
(anonymous) @ focusManager.js:76
onFocus @ focusManager.js:75
(anonymous) @ focusManager.js:61
listener2 @ focusManager.js:17
Show 20 more frames
Show less
console.js:213 Error: The dataProvider threw an error. It should return a rejected Promise instead.
at Proxy. (useDataProvider.ts:135:31)
at Object.queryFn (useGetList.ts:75:18)
at Object.fetchFn2 [as fn] (query.js:300:29)
at run2 (retryer.js:95:31)
at new Retryer2 (retryer.js:156:3)
at Query2.fetch2 [as fetch] (query.js:332:20)
at QueryObserver2.executeFetch (queryObserver.js:199:37)
at QueryObserver2.fetch2 [as fetch] (queryObserver.js:188:17)
at QueryObserver2.refetch2 [as refetch] (queryObserver.js:168:17)
at Query2.onFocus (query.js:153:16)
overrideMethod @ console.js:213
onError @ query.js:358
reject2 @ retryer.js:67
(anonymous) @ retryer.js:132
Promise.catch (async)
run2 @ retryer.js:116
Retryer2 @ retryer.js:156
fetch2 @ query.js:332
executeFetch @ queryObserver.js:199
fetch2 @ queryObserver.js:188
refetch2 @ queryObserver.js:168
onFocus @ query.js:153
(anonymous) @ queryCache.js:131
(anonymous) @ queryCache.js:130
batch2 @ notifyManager.js:25
onFocus @ queryCache.js:129
(anonymous) @ queryClient.js:32
(anonymous) @ focusManager.js:76
onFocus @ focusManager.js:75
(anonymous) @ focusManager.js:61
listener2 @ focusManager.js:17
Show 20 more frames
Show less
1691570057209-Logo.png:1 GET http://localhost:5173/aVALIp0BzvatU65HC8VrSmk-SMg=/240x240/smart/rh-staging/2213774826167296/1691570057209-Logo.png 404 (Not Found)
Image (async)
commitMount @ react-dom.development.js:11038
commitLayoutEffectOnFiber @ react-dom.development.js:23407
commitLayoutMountEffects_complete @ react-dom.development.js:24688
commitLayoutEffects_begin @ react-dom.development.js:24674
commitLayoutEffects_begin @ react-dom.development.js:24656
commitLayoutEffects @ react-dom.development.js:24612
commitRootImpl @ react-dom.development.js:26823
commitRoot @ react-dom.development.js:26682
finishConcurrentRender @ react-dom.development.js:25981
performConcurrentWorkOnRoot @ react-dom.development.js:25809
workLoop @ scheduler.development.js:266
flushWork @ scheduler.development.js:239
performWorkUntilDeadline @ scheduler.development.js:533
Show 13 more frames
Show less
console.js:213 TypeError: flatFilter[key].match is not a function
at index.ts:41:182
at Array.map ()
at composeFilter (index.ts:34:34)
at Object.getList (index.ts:68:15)
at Proxy. (useDataProvider.ts:103:30)
at Object.queryFn (useGetList.ts:75:18)
at Object.fetchFn2 [as fn] (query.js:300:29)
at run2 (retryer.js:95:31)
at new Retryer2 (retryer.js:156:3)
at Query2.fetch2 [as fetch] (query.js:332:20) '\n at ListBase (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:14880:25)\n at List3 (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:146315:24)\n at ListHotels (http://localhost:5173/src/pages/HotelsList/index.tsx?t=1696832136728:26:3)\n at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3251:5)\n at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3669:5)\n at ResourceContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20776:25)\n at Resource (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20792:26)\n at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3251:5)\n at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3669:5)\n at Suspense\n at ErrorBoundary2 (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:54281:35)\n at div\n at main\n at div\n at div\n at http://localhost:5173/node_modules/.vite/deps/chunk-MRX2TNXS.js?v=59557cab:4532:50\n at Layout (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:54679:20)\n at div\n at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3251:5)\n at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3669:5)\n at CoreAdminRoutes (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20428:7)\n at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3251:5)\n at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3669:5)\n at CoreAdminUI (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20502:22)\n at div\n at http://localhost:5173/node_modules/.vite/deps/chunk-MRX2TNXS.js?v=59557cab:4532:50\n at ScopedCssBaseline2 (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:41677:17)\n at AdminUI (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:146902:17)\n at ThemeProvider2 (http://localhost:5173/node_modules/.vite/deps/chunk-MRX2TNXS.js?v=59557cab:7739:5)\n at ThemeProvider3 (http://localhost:5173/node_modules/.vite/deps/chunk-MRX2TNXS.js?v=59557cab:7826:5)\n at ThemeProvider (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:4054:12)\n at ThemeProvider2 (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:55107:24)\n at ResourceDefinitionContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20023:19)\n at NotificationContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:1502:25)\n at I18nContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:22710:19)\n at Router (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3616:15)\n at HistoryRouter (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6597:21)\n at InternalRouter (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6663:25)\n at BasenameContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6632:25)\n at AdminRouter (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6649:24)\n at QueryClientProvider2 (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6028:25)\n at PreferencesEditorContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:19934:25)\n at StoreContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:1363:22)\n at CoreAdminContext (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20066:32)\n at AdminContext (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:146939:21)\n at Admin (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:147222:28)\n at App'
overrideMethod @ console.js:213
(anonymous) @ useDataProvider.ts:133
(anonymous) @ useGetList.ts:75
fetchFn2 @ query.js:300
run2 @ retryer.js:95
Retryer2 @ retryer.js:156
fetch2 @ query.js:332
executeFetch @ queryObserver.js:199
setOptions @ queryObserver.js:85
(anonymous) @ useBaseQuery.js:78
commitHookEffectListMount @ react-dom.development.js:23150
commitPassiveMountOnFiber @ react-dom.development.js:24926
commitPassiveMountEffects_complete @ react-dom.development.js:24891
commitPassiveMountEffects_begin @ react-dom.development.js:24878
commitPassiveMountEffects @ react-dom.development.js:24866
flushPassiveEffectsImpl @ react-dom.development.js:27039
flushPassiveEffects @ react-dom.development.js:26984
(anonymous) @ react-dom.development.js:26769
workLoop @ scheduler.development.js:266
flushWork @ scheduler.development.js:239
performWorkUntilDeadline @ scheduler.development.js:533
Show 21 more frames
Show less
console.js:213 Error: The dataProvider threw an error. It should return a rejected Promise instead.
at Proxy. (useDataProvider.ts:135:31)
at Object.queryFn (useGetList.ts:75:18)
at Object.fetchFn2 [as fn] (query.js:300:29)
at run2 (retryer.js:95:31)
at new Retryer2 (retryer.js:156:3)
at Query2.fetch2 [as fetch] (query.js:332:20)
at QueryObserver2.executeFetch (queryObserver.js:199:37)
at QueryObserver2.setOptions (queryObserver.js:85:12)
at useBaseQuery.js:78:14
at commitHookEffectListMount (react-dom.development.js:23150:26)
overrideMethod @ console.js:213
onError @ query.js:358
reject2 @ retryer.js:67
(anonymous) @ retryer.js:132
Promise.catch (async)
run2 @ retryer.js:116
Retryer2 @ retryer.js:156
fetch2 @ query.js:332
executeFetch @ queryObserver.js:199
setOptions @ queryObserver.js:85
(anonymous) @ useBaseQuery.js:78
commitHookEffectListMount @ react-dom.development.js:23150
commitPassiveMountOnFiber @ react-dom.development.js:24926
commitPassiveMountEffects_complete @ react-dom.development.js:24891
commitPassiveMountEffects_begin @ react-dom.development.js:24878
commitPassiveMountEffects @ react-dom.development.js:24866
flushPassiveEffectsImpl @ react-dom.development.js:27039
flushPassiveEffects @ react-dom.development.js:26984
(anonymous) @ react-dom.development.js:26769
workLoop @ scheduler.development.js:266
flushWork @ scheduler.development.js:239
performWorkUntilDeadline @ scheduler.development.js:533
Show 21 more frames
Show less
1691570057209-Logo.png:1 GET http://localhost:5173/aVALIp0BzvatU65HC8VrSmk-SMg=/240x240/smart/rh-staging/2213774826167296/1691570057209-Logo.png 404 (Not Found)
Image (async)
commitMount @ react-dom.development.js:11038
commitLayoutEffectOnFiber @ react-dom.development.js:23407
commitLayoutMountEffects_complete @ react-dom.development.js:24688
commitLayoutEffects_begin @ react-dom.development.js:24674
commitLayoutEffects_begin @ react-dom.development.js:24656
commitLayoutEffects @ react-dom.development.js:24612
commitRootImpl @ react-dom.development.js:26823
commitRoot @ react-dom.development.js:26682
finishConcurrentRender @ react-dom.development.js:25981
performConcurrentWorkOnRoot @ react-dom.development.js:25809
workLoop @ scheduler.development.js:266
flushWork @ scheduler.development.js:239
performWorkUntilDeadline @ scheduler.development.js:533
Show 13 more frames
Show less
console.js:213 TypeError: flatFilter[key].match is not a function
at index.ts:41:182
at Array.map ()
at composeFilter (index.ts:34:34)
at Object.getList (index.ts:68:15)
at Proxy. (useDataProvider.ts:103:30)
at Object.queryFn (useGetList.ts:75:18)
at Object.fetchFn2 [as fn] (query.js:300:29)
at run2 (retryer.js:95:31)
at new Retryer2 (retryer.js:156:3)
at Query2.fetch2 [as fetch] (query.js:332:20) '\n at ListBase (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:14880:25)\n at List3 (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:146315:24)\n at ListHotels (http://localhost:5173/src/pages/HotelsList/index.tsx?t=1696832136728:26:3)\n at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3251:5)\n at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3669:5)\n at ResourceContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20776:25)\n at Resource (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20792:26)\n at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3251:5)\n at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3669:5)\n at Suspense\n at ErrorBoundary2 (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:54281:35)\n at div\n at main\n at div\n at div\n at http://localhost:5173/node_modules/.vite/deps/chunk-MRX2TNXS.js?v=59557cab:4532:50\n at Layout (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:54679:20)\n at div\n at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3251:5)\n at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3669:5)\n at CoreAdminRoutes (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20428:7)\n at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3251:5)\n at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3669:5)\n at CoreAdminUI (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20502:22)\n at div\n at http://localhost:5173/node_modules/.vite/deps/chunk-MRX2TNXS.js?v=59557cab:4532:50\n at ScopedCssBaseline2 (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:41677:17)\n at AdminUI (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:146902:17)\n at ThemeProvider2 (http://localhost:5173/node_modules/.vite/deps/chunk-MRX2TNXS.js?v=59557cab:7739:5)\n at ThemeProvider3 (http://localhost:5173/node_modules/.vite/deps/chunk-MRX2TNXS.js?v=59557cab:7826:5)\n at ThemeProvider (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:4054:12)\n at ThemeProvider2 (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:55107:24)\n at ResourceDefinitionContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20023:19)\n at NotificationContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:1502:25)\n at I18nContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:22710:19)\n at Router (http://localhost:5173/node_modules/.vite/deps/chunk-VSSR7JQR.js?v=59557cab:3616:15)\n at HistoryRouter (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6597:21)\n at InternalRouter (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6663:25)\n at BasenameContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6632:25)\n at AdminRouter (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6649:24)\n at QueryClientProvider2 (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:6028:25)\n at PreferencesEditorContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:19934:25)\n at StoreContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:1363:22)\n at CoreAdminContext (http://localhost:5173/node_modules/.vite/deps/chunk-S5LHN3CM.js?v=59557cab:20066:32)\n at AdminContext (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:146939:21)\n at Admin (http://localhost:5173/node_modules/.vite/deps/react-admin.js?v=59557cab:147222:28)\n at App'
overrideMethod @ console.js:213
(anonymous) @ useDataProvider.ts:133
(anonymous) @ useGetList.ts:75
fetchFn2 @ query.js:300
run2 @ retryer.js:95
Retryer2 @ retryer.js:156
fetch2 @ query.js:332
executeFetch @ queryObserver.js:199
setOptions @ queryObserver.js:85
(anonymous) @ useBaseQuery.js:78
commitHookEffectListMount @ react-dom.development.js:23150
commitPassiveMountOnFiber @ react-dom.development.js:24926
commitPassiveMountEffects_complete @ react-dom.development.js:24891
commitPassiveMountEffects_begin @ react-dom.development.js:24878
commitPassiveMountEffects @ react-dom.development.js:24866
flushPassiveEffectsImpl @ react-dom.development.js:27039
flushPassiveEffects @ react-dom.development.js:26984
performConcurrentWorkOnRoot @ react-dom.development.js:25709
workLoop @ scheduler.development.js:266
flushWork @ scheduler.development.js:239
performWorkUntilDeadline @ scheduler.development.js:533
Show 21 more frames
Show less
console.js:213 Error: The dataProvider threw an error. It should return a rejected Promise instead.
at Proxy. (useDataProvider.ts:135:31)
at Object.queryFn (useGetList.ts:75:18)
at Object.fetchFn2 [as fn] (query.js:300:29)
at run2 (retryer.js:95:31)
at new Retryer2 (retryer.js:156:3)
at Query2.fetch2 [as fetch] (query.js:332:20)
at QueryObserver2.executeFetch (queryObserver.js:199:37)
at QueryObserver2.setOptions (queryObserver.js:85:12)
at useBaseQuery.js:78:14
at commitHookEffectListMount (react-dom.development.js:23150:26)
The text was updated successfully, but these errors were encountered: