소스 검색

refactor: remove unused pagesWithGlobPath logic for cleaner code

Shun Miyazawa 8 달 전
부모
커밋
08fa5debcb
1개의 변경된 파일0개의 추가작업 그리고 16개의 파일을 삭제
  1. 0 16
      apps/app/src/features/openai/client/components/AiAssistant/AiAssistantManagementModal/SelectablePagePageList.tsx

+ 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}>