فهرست منبع

fix: anthology edit page read wrong route param causing id=undefined

visuddhinanda 6 روز پیش
والد
کامیت
d6a5c6f6df
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      dashboard-v6/src/pages/workspace/anthology/edit.tsx

+ 2 - 2
dashboard-v6/src/pages/workspace/anthology/edit.tsx

@@ -5,12 +5,12 @@ import { useAppSelector } from "../../../hooks";
 import { currentUser } from "../../../reducers/current-user";
 
 const Widget = () => {
-  const { id } = useParams(); //url 参数
+  const { anthologyId } = useParams(); //url 参数
   const user = useAppSelector(currentUser);
 
   return (
     <>
-      <AnthologyTocEdit id={id} editorStudioName={user?.realName} />
+      <AnthologyTocEdit id={anthologyId} editorStudioName={user?.realName} />
     </>
   );
 };