panels[currentPanelIndex] is undefined
I have no idea what happened, but strapi suddenly decided to give me this error, and I can no longer access the content manager.

Here's the log:


```
formatEditLayout/panelledEditAttributes<@http://127.0.0.1:1337/node_modules/.strapi/vite/deps/chunk-2N3APQN5.js?v=81e27763:1067:7
formatEditLayout@http://127.0.0.1:1337/node_modules/.strapi/vite/deps/chunk-2N3APQN5.js?v=81e27763:1059:5
useDocumentLayout/editLayout<@http://127.0.0.1:1337/node_modules/.strapi/vite/deps/chunk-2N3APQN5.js?v=81e27763:1012:32
updateMemo@http://127.0.0.1:1337/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=81e27763:12230:27
useMemo@http://127.0.0.1:1337/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=81e27763:12746:24
useMemo@http://127.0.0.1:1337/node_modules/.strapi/vite/deps/chunk-BCGHH3YY.js?v=81e27763:1094:29
useDocumentLayout@http://127.0.0.1:1337/node_modules/.strapi/vite/deps/chunk-2N3APQN5.js?v=81e27763:1011:28
ListViewPage@http://127.0.0.1:1337/node_modules/.strapi/vite/deps/ListViewPage-CELx2ysp-CWUMSDOE.js?v=81e27763:672:37
renderWithHooks@http://127.0.0.1:1337/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=81e27763:11568:35
updateFunctionComponent@http://127.0.0.1:1337/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=81e27763:14602:28
beginWork@http://127.0.0.1:1337/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=81e27763:15944:22
beginWork$1@http://127.0.0.1:1337/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=81e27763:19781:22
performUnitOfWork@http://127.0.0.1:1337/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=81e27763:19226:20
workLoopSync@http://127.0.0.1:1337/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=81e27763:19165:30
renderRootSync@http://127.0.0.1:1337/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=81e27763:19144:15
recoverFromConcurrentError@http://127.0.0.1:1337/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=81e27763:18764:42
performSyncWorkOnRoot@http://127.0.0.1:1337/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=81e27763:18907:28
flushSyncCallbacks@http://127.0.0.1:1337/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=81e27763:9135:30
node_modules/react-dom/cjs/react-dom.development.js/ensureRootIsScheduled/<@http://127.0.0.1:1337/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=81e27763:18655:21

```
      