Browse Source

Fixed lint

Taichi Masuyama 4 years ago
parent
commit
8be6d0e5fc
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/app/src/components/Sidebar/CustomSidebar.tsx

+ 2 - 1
packages/app/src/components/Sidebar/CustomSidebar.tsx

@@ -6,6 +6,7 @@ import { useSWRxPageByPath } from '~/stores/page';
 
 
 import { withUnstatedContainers } from '../UnstatedUtils';
 import { withUnstatedContainers } from '../UnstatedUtils';
 import RevisionRenderer from '../Page/RevisionRenderer';
 import RevisionRenderer from '../Page/RevisionRenderer';
+import { IRevision } from '~/interfaces/revision';
 
 
 const logger = loggerFactory('growi:cli:CustomSidebar');
 const logger = loggerFactory('growi:cli:CustomSidebar');
 
 
@@ -33,7 +34,7 @@ const CustomSidebar: FC<Props> = (props: Props) => {
   const { data: page, mutate } = useSWRxPageByPath('/Sidebar');
   const { data: page, mutate } = useSWRxPageByPath('/Sidebar');
 
 
   const isLoading = page === undefined;
   const isLoading = page === undefined;
-  const markdown = page?.revision?.body;
+  const markdown = (page?.revision as IRevision)?.body;
 
 
   return (
   return (
     <>
     <>