소스 검색

add comment to ContextExtractor

yohei0125 4 년 전
부모
커밋
4e48c7f315
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      packages/app/src/client/services/ContextExtractor.tsx

+ 1 - 0
packages/app/src/client/services/ContextExtractor.tsx

@@ -57,6 +57,7 @@ const ContextExtractorOnce: FC = () => {
    */
   const revisionId = mainContent?.getAttribute('data-page-revision-id');
   const path = decodeURI(mainContent?.getAttribute('data-path') || '');
+  // assign `null` to avoid returning empty string
   const pageId = (mainContent?.getAttribute('data-page-id') || notFoundContext?.getAttribute('data-page-id')) || null;
 
   const revisionCreatedAt = +(mainContent?.getAttribute('data-page-revision-created') || '');