Просмотр исходного кода

refactor: clean up unused variables and improve code readability in AiAssistantManagementPageTreeSelection

Shun Miyazawa 8 месяцев назад
Родитель
Сommit
7efa51113c

+ 1 - 1
apps/app/src/features/openai/client/components/AiAssistant/AiAssistantManagementModal/AiAssistantManagementPageTreeSelection.tsx

@@ -103,7 +103,7 @@ export const AiAssistantManagementPageTreeSelection = (props: Props): JSX.Elemen
       return;
     }
 
-    const clonedPage = structuredClone(page);
+    const clonedPage = {...page };
     clonedPage.path = pagePathWithGlob;
 
     addPage(clonedPage);