kaori 3 лет назад
Родитель
Сommit
ae39597015
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/app/src/pages/admin/[[...path]].page.tsx

+ 2 - 2
packages/app/src/pages/admin/[[...path]].page.tsx

@@ -86,7 +86,7 @@ const AdminMarkdownSettingsPage: NextPage<Props> = (props: Props) => {
   const { t } = useTranslation('admin');
   const router = useRouter();
   const { path } = router.query;
-  const pagePathKeys = Array.isArray(path) ? path : ['home'];
+  const pagePathKeys: string[] = Array.isArray(path) ? path : ['home'];
 
   const adminPagesMap = {
     home: {
@@ -245,7 +245,7 @@ const AdminMarkdownSettingsPage: NextPage<Props> = (props: Props) => {
 
   return (
     <Provider inject={[...injectableContainers, ...adminSecurityContainers]}>
-      <AdminLayout title={title} selectedNavOpt={pagePathKeys}>
+      <AdminLayout title={title} selectedNavOpt={pagePathKeys[0]}>
         {targetPage.component}
       </AdminLayout>
     </Provider>