diff --git a/web/components/admin/MainLayout.tsx b/web/components/admin/MainLayout.tsx index 05d4d2030..1efe5e3b3 100644 --- a/web/components/admin/MainLayout.tsx +++ b/web/components/admin/MainLayout.tsx @@ -284,11 +284,10 @@ export const MainLayout: FC = ({ children }) => { }; useEffect(() => { - menuItems.forEach( - item => - item?.children?.forEach(child => { - if (child?.key === route) setOpenKeys([...openMenuItems, item.key]); - }), + menuItems.forEach(item => + item?.children?.forEach(child => { + if (child?.key === route) setOpenKeys([...openMenuItems, item.key]); + }), ); }, []); diff --git a/web/package-lock.json b/web/package-lock.json index 82f76e5cb..7d4e4af88 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -109,7 +109,7 @@ "mermaid": "^10.0.0", "npm": "^10.0.0", "postcss": "^8.4.31", - "prettier": "3.1.1", + "prettier": "3.2.3", "resolve-url-loader": "^5.0.0", "sass": "1.69.7", "sass-loader": "^13.3.2", @@ -29661,9 +29661,9 @@ } }, "node_modules/prettier": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz", - "integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==", + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.3.tgz", + "integrity": "sha512-QNhUTBq+mqt1oH1dTfY3phOKNhcDdJkfttHI6u0kj7M2+c+7fmNKlgh2GhnHiqMcbxJ+a0j2igz/2jfl9QKLuw==", "dev": true, "bin": { "prettier": "bin/prettier.cjs" diff --git a/web/package.json b/web/package.json index c563c666e..f6d306c9d 100644 --- a/web/package.json +++ b/web/package.json @@ -115,7 +115,7 @@ "mermaid": "^10.0.0", "npm": "^10.0.0", "postcss": "^8.4.31", - "prettier": "3.1.1", + "prettier": "3.2.3", "resolve-url-loader": "^5.0.0", "sass": "1.69.7", "sass-loader": "^13.3.2",