Jelajahi Sumber

refactor: remove unused pagesWithGlobPath logic for cleaner code

Shun Miyazawa 8 bulan lalu
induk
melakukan
08fa5debcb

+ 0 - 16
apps/app/src/features/openai/client/components/AiAssistant/AiAssistantManagementModal/SelectablePagePageList.tsx

@@ -190,22 +190,6 @@ export const SelectablePagePageList = (props: SelectablePagePageListProps): JSX.
 
   const { t } = useTranslation();
 
-  // SelectedPages will include subordinate pages by default
-  // const pagesWithGlobPath = useMemo(() => {
-  //   return pages.map((page) => {
-  //     if (page.path === '/') {
-  //       page.path = '/*';
-  //     }
-
-  //     if (!page.path.endsWith('/*')) {
-  //       page.path = `${page.path}/*`;
-  //     }
-
-  //     return page;
-  //   });
-  // }, [pages]);
-
-
   if (pages.length === 0) {
     return (
       <div className={moduleClass}>