Reports view throws an error after backup import
STR:
- Export the whole Kresus (it should have some categories and categorized transactions)
- Re-import it
- Navigate to the reports and charts: errors about
fromId
are spawning
TypeError: can't access property "color", CategoriesStore.fromId(...) is undefined
REACT INFO:
TransactionItem</categoryColor<@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/components/reports/item.tsx?t=1717154154068:84:30
memoizedSelector@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/react-redux.js?v=a0da9878:192:46
getSnapshotWithSelector@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/react-redux.js?v=a0da9878:220:22
mountSyncExternalStore@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:12093:28
useSyncExternalStore@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:12777:22
useSyncExternalStore@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-4ROKLF6C.js?v=d0230473:1040:29
useSyncExternalStoreWithSelector3@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/react-redux.js?v=a0da9878:227:44
useSelector2@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/react-redux.js?v=a0da9878:513:59
useKresusState@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/helpers/index.ts:149:10
TransactionItem<@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/components/reports/item.tsx?t=1717154154068:79:41
renderWithHooks@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:11763:35
updateForwardRef@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:13907:28
beginWork@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:15479:22
beginWork$1@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:19248:22
performUnitOfWork@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:18693:20
workLoopSync@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:18632:30
renderRootSync@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:18611:15
recoverFromConcurrentError@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:18233:42
performSyncWorkOnRoot@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:18375:28
flushSyncCallbacks@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:8776:30
node_modules/react-dom/cjs/react-dom.development.js/ensureRootIsScheduled/<@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:18124:21
VoidFunction*ensureRootIsScheduled@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:18122:34
scheduleUpdateOnFiber@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:18067:34
enqueueSetState@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:10249:36
node_modules/react/cjs/react.development.js/Component.prototype.setState@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-4ROKLF6C.js?v=d0230473:173:24
componentDidMount/this.unlisten<@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/react-router-dom.js?v=ba99a3cd:1319:18
listener@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/react-router-dom.js?v=ba99a3cd:533:12
createTransitionManager/notifyListeners/<@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/react-router-dom.js?v=ba99a3cd:548:23
notifyListeners@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/react-router-dom.js?v=ba99a3cd:547:15
setState@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/react-router-dom.js?v=ba99a3cd:612:23
createBrowserHistory/push/<@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/react-router-dom.js?v=ba99a3cd:681:19
confirmTransitionTo@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/react-router-dom.js?v=ba99a3cd:525:15
push@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/react-router-dom.js?v=ba99a3cd:664:23
navigate@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/react-router-dom.js?v=ba99a3cd:1954:15
onClick@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/react-router-dom.js?v=ba99a3cd:1927:9
callCallback2@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:3575:22
invokeGuardedCallbackDev@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:3600:24
invokeGuardedCallback@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:3634:39
invokeGuardedCallbackAndCatchFirstError@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:3637:33
executeDispatch@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:6672:50
processDispatchQueueItemsInOrder@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:6692:30
processDispatchQueue@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:6701:45
dispatchEventsForPlugins@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:6709:31
node_modules/react-dom/cjs/react-dom.development.js/dispatchEventForPluginEventSystem/<@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:6833:20
batchedUpdates$1@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:18409:20
batchedUpdates@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:3480:20
dispatchEventForPluginEventSystem@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:6832:25
dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:5163:46
dispatchEvent@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:5157:92
dispatchDiscreteEvent@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:5134:26
EventListener.handleEvent*addEventBubbleListener@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:5320:18
addTrappedEventListener@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:6778:37
listenToNativeEvent@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:6735:34
node_modules/react-dom/cjs/react-dom.development.js/listenToAllSupportedEvents/<@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:6744:38
listenToAllSupportedEvents@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:6741:29
createRoot@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:20659:37
createRoot$1@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/chunk-34FVEOGX.js?v=d0230473:20982:18
node_modules/react-dom/client.js/exports.createRoot@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/@fs/workspace/kresus/node_modules/.vite/deps/react-dom_client.js?v=597f284d:21:20
runKresus@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/main.tsx?t=1717154154068:293:15
async*@https://8080-kresusapp-kresus-az83z35mu6z.ws-eu114.gitpod.io/init.tsx?t=1717154154068:8:8
The state.categories is empty (only has the "No category" item).
Edited by Nicolas Frandeboeuf