Skip to content

frontend: Refactor prepareSidebarItems into a hook #7011

frontend: Refactor prepareSidebarItems into a hook

frontend: Refactor prepareSidebarItems into a hook #7011

Triggered via pull request December 20, 2024 15:12
Status Failure
Total duration 1m 54s
Artifacts

frontend.yml

on: pull_request
Matrix: build
Matrix: build docs
Matrix: build storybook
Matrix: lint
Matrix: test
Matrix: test plugins
Fit to window
Zoom out
Zoom in

Annotations

2 errors
src/storybook.test.tsx > Storybook Tests > Sidebar/Sidebar > SelectedItemWithSidebarOmitted: frontend/src/components/Sidebar/Sidebar.tsx#L186
TypeError: Cannot read properties of undefined (reading 'map') ❯ src/components/Sidebar/Sidebar.tsx:186:5 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ updateSimpleMemoComponent node_modules/react-dom/cjs/react-dom.development.js:19454:10 ❯ updateMemoComponent node_modules/react-dom/cjs/react-dom.development.js:19303:14 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21712:16 ❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7 ❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20 ❯ performConcurrentWorkOnRoot node_modules/react-dom/cjs/react-dom.development.js:25789:22 ❯ flushActQueue node_modules/react/cjs/react.development.js:2667:24 ❯ recursivelyFlushAsyncActWork node_modules/react/cjs/react.development.js:2633:9 ❯ node_modules/react/cjs/react.development.js:2545:15
test (20.x, ubuntu-22.04)
Process completed with exit code 2.