Closed naveedlogics closed 1 year ago
Home.jsx:33 Uncaught TypeError: Cannot read properties of undefined (reading 'adminShop') at Home (Home.jsx:33:5) at renderWithHooks (react-dom.development.js:14986:1) at updateFunctionComponent (react-dom.development.js:17357:1) at beginWork (react-dom.development.js:19064:1) at HTMLUnknownElement.callCallback (react-dom.development.js:3946:1) at Object.invokeGuardedCallbackDev (react-dom.development.js:3995:1) at invokeGuardedCallback (react-dom.development.js:4057:1) at beginWork$1 (react-dom.development.js:23965:1) at performUnitOfWork (react-dom.development.js:22780:1) at workLoopSync (react-dom.development.js:22708:1) Home @ Home.jsx:33 renderWithHooks @ react-dom.development.js:14986 updateFunctionComponent @ react-dom.development.js:17357 beginWork @ react-dom.development.js:19064 callCallback @ react-dom.development.js:3946 invokeGuardedCallbackDev @ react-dom.development.js:3995 invokeGuardedCallback @ react-dom.development.js:4057 beginWork$1 @ react-dom.development.js:23965 performUnitOfWork @ react-dom.development.js:22780 workLoopSync @ react-dom.development.js:22708 renderRootSync @ react-dom.development.js:22671 performSyncWorkOnRoot @ react-dom.development.js:22294 (anonymous) @ react-dom.development.js:11328 unstable_runWithPriority @ scheduler.development.js:468 runWithPriority$1 @ react-dom.development.js:11277 flushSyncCallbackQueueImpl @ react-dom.development.js:11323 flushSyncCallbackQueue @ react-dom.development.js:11310 scheduleUpdateOnFiber @ react-dom.development.js:21894 dispatchAction @ react-dom.development.js:16140 state.forceUpdate @ useQuery.js:28 InternalState.setResult @ useQuery.js:236 onError @ useQuery.js:106 notifySubscription @ module.js:137 onNotify @ module.js:176 error @ module.js:229 (anonymous) @ iteration.js:4 iterateObserversSafely @ iteration.js:4 ObservableQuery.reportError @ ObservableQuery.js:452 error @ ObservableQuery.js:424 (anonymous) @ iteration.js:4 iterateObserversSafely @ iteration.js:4 error @ Concast.js:37 notifySubscription @ module.js:137 onNotify @ module.js:176 error @ module.js:229 (anonymous) @ asyncMap.js:27 Promise.catch (async) (anonymous) @ asyncMap.js:26 notifySubscription @ module.js:132 onNotify @ module.js:176 next @ module.js:225 (anonymous) @ iteration.js:4 iterateObserversSafely @ iteration.js:4 next @ Concast.js:25 notifySubscription @ module.js:132 onNotify @ module.js:176 next @ module.js:225 (anonymous) @ parseAndCheckHttpResponse.js:123 Promise.then (async) readJsonBody @ parseAndCheckHttpResponse.js:121 (anonymous) @ createHttpLink.js:108 Promise.then (async) (anonymous) @ createHttpLink.js:100 Subscription @ module.js:190 subscribe @ module.js:264 complete @ Concast.js:62 Concast.start @ Concast.js:89 Concast @ Concast.js:81 QueryManager.getObservableFromLink @ QueryManager.js:555 QueryManager.getResultsFromLink @ QueryManager.js:596 resultsFromLink @ QueryManager.js:777 QueryManager.fetchQueryByPolicy @ QueryManager.js:803 fromVariables @ QueryManager.js:656 QueryManager.fetchQueryObservable @ QueryManager.js:671 ObservableQuery.fetch @ ObservableQuery.js:338 ObservableQuery.reobserve @ ObservableQuery.js:418 (anonymous) @ ObservableQuery.js:29 Subscription @ module.js:190 subscribe @ module.js:264 (anonymous) @ useQuery.js:114 (anonymous) @ useSyncExternalStore.js:31 invokePassiveEffectCreate @ react-dom.development.js:23488 callCallback @ react-dom.development.js:3946 invokeGuardedCallbackDev @ react-dom.development.js:3995 invokeGuardedCallback @ react-dom.development.js:4057 flushPassiveEffectsImpl @ react-dom.development.js:23575 unstable_runWithPriority @ scheduler.development.js:468 runWithPriority$1 @ react-dom.development.js:11277 flushPassiveEffects @ react-dom.development.js:23448 performSyncWorkOnRoot @ react-dom.development.js:22270 (anonymous) @ react-dom.development.js:11328 unstable_runWithPriority @ scheduler.development.js:468 runWithPriority$1 @ react-dom.development.js:11277 flushSyncCallbackQueueImpl @ react-dom.development.js:11323 flushSyncCallbackQueue @ react-dom.development.js:11310 unbatchedUpdates @ react-dom.development.js:22439 legacyRenderSubtreeIntoContainer @ react-dom.development.js:26021 render @ react-dom.development.js:26104 render @ index.jsx:10 ./app/src/index.jsx @ index.jsx:18 __webpack_require__ @ bootstrap:24 (anonymous) @ startup:6 (anonymous) @ startup:6 react-dom.development.js:20086 The above error occurred in the component:
at Home (https://bf07-2407-d000-a-e421-d3c-d7a9-b74c-bfdb.ngrok-free.app/main.js:25868:75)
Home.jsx:33 Uncaught TypeError: Cannot read properties of undefined (reading 'adminShop') at Home (Home.jsx:33:5) at renderWithHooks (react-dom.development.js:14986:1) at updateFunctionComponent (react-dom.development.js:17357:1) at beginWork (react-dom.development.js:19064:1) at HTMLUnknownElement.callCallback (react-dom.development.js:3946:1) at Object.invokeGuardedCallbackDev (react-dom.development.js:3995:1) at invokeGuardedCallback (react-dom.development.js:4057:1) at beginWork$1 (react-dom.development.js:23965:1) at performUnitOfWork (react-dom.development.js:22780:1) at workLoopSync (react-dom.development.js:22708:1) Home @ Home.jsx:33 renderWithHooks @ react-dom.development.js:14986 updateFunctionComponent @ react-dom.development.js:17357 beginWork @ react-dom.development.js:19064 callCallback @ react-dom.development.js:3946 invokeGuardedCallbackDev @ react-dom.development.js:3995 invokeGuardedCallback @ react-dom.development.js:4057 beginWork$1 @ react-dom.development.js:23965 performUnitOfWork @ react-dom.development.js:22780 workLoopSync @ react-dom.development.js:22708 renderRootSync @ react-dom.development.js:22671 performSyncWorkOnRoot @ react-dom.development.js:22294 (anonymous) @ react-dom.development.js:11328 unstable_runWithPriority @ scheduler.development.js:468 runWithPriority$1 @ react-dom.development.js:11277 flushSyncCallbackQueueImpl @ react-dom.development.js:11323 flushSyncCallbackQueue @ react-dom.development.js:11310 scheduleUpdateOnFiber @ react-dom.development.js:21894 dispatchAction @ react-dom.development.js:16140 state.forceUpdate @ useQuery.js:28 InternalState.setResult @ useQuery.js:236 onError @ useQuery.js:106 notifySubscription @ module.js:137 onNotify @ module.js:176 error @ module.js:229 (anonymous) @ iteration.js:4 iterateObserversSafely @ iteration.js:4 ObservableQuery.reportError @ ObservableQuery.js:452 error @ ObservableQuery.js:424 (anonymous) @ iteration.js:4 iterateObserversSafely @ iteration.js:4 error @ Concast.js:37 notifySubscription @ module.js:137 onNotify @ module.js:176 error @ module.js:229 (anonymous) @ asyncMap.js:27 Promise.catch (async) (anonymous) @ asyncMap.js:26 notifySubscription @ module.js:132 onNotify @ module.js:176 next @ module.js:225 (anonymous) @ iteration.js:4 iterateObserversSafely @ iteration.js:4 next @ Concast.js:25 notifySubscription @ module.js:132 onNotify @ module.js:176 next @ module.js:225 (anonymous) @ parseAndCheckHttpResponse.js:123 Promise.then (async) readJsonBody @ parseAndCheckHttpResponse.js:121 (anonymous) @ createHttpLink.js:108 Promise.then (async) (anonymous) @ createHttpLink.js:100 Subscription @ module.js:190 subscribe @ module.js:264 complete @ Concast.js:62 Concast.start @ Concast.js:89 Concast @ Concast.js:81 QueryManager.getObservableFromLink @ QueryManager.js:555 QueryManager.getResultsFromLink @ QueryManager.js:596 resultsFromLink @ QueryManager.js:777 QueryManager.fetchQueryByPolicy @ QueryManager.js:803 fromVariables @ QueryManager.js:656 QueryManager.fetchQueryObservable @ QueryManager.js:671 ObservableQuery.fetch @ ObservableQuery.js:338 ObservableQuery.reobserve @ ObservableQuery.js:418 (anonymous) @ ObservableQuery.js:29 Subscription @ module.js:190 subscribe @ module.js:264 (anonymous) @ useQuery.js:114 (anonymous) @ useSyncExternalStore.js:31 invokePassiveEffectCreate @ react-dom.development.js:23488 callCallback @ react-dom.development.js:3946 invokeGuardedCallbackDev @ react-dom.development.js:3995 invokeGuardedCallback @ react-dom.development.js:4057 flushPassiveEffectsImpl @ react-dom.development.js:23575 unstable_runWithPriority @ scheduler.development.js:468 runWithPriority$1 @ react-dom.development.js:11277 flushPassiveEffects @ react-dom.development.js:23448 performSyncWorkOnRoot @ react-dom.development.js:22270 (anonymous) @ react-dom.development.js:11328 unstable_runWithPriority @ scheduler.development.js:468 runWithPriority$1 @ react-dom.development.js:11277 flushSyncCallbackQueueImpl @ react-dom.development.js:11323 flushSyncCallbackQueue @ react-dom.development.js:11310 unbatchedUpdates @ react-dom.development.js:22439 legacyRenderSubtreeIntoContainer @ react-dom.development.js:26021 render @ react-dom.development.js:26104 render @ index.jsx:10 ./app/src/index.jsx @ index.jsx:18 __webpack_require__ @ bootstrap:24 (anonymous) @ startup:6 (anonymous) @ startup:6 react-dom.development.js:20086 The above error occurred in the component: