jam411 пре 3 година
родитељ
комит
f19ae307e5
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      packages/app/src/components/PageComment/DeleteCommentModal.tsx

+ 2 - 1
packages/app/src/components/PageComment/DeleteCommentModal.tsx

@@ -1,5 +1,6 @@
 import React from 'react';
 
+import { Nullable } from '@growi/core';
 import { UserPicture } from '@growi/ui';
 import { format } from 'date-fns';
 import {
@@ -14,7 +15,7 @@ import styles from './DeleteCommentModal.module.scss';
 
 export type DeleteCommentModalProps = {
   isShown: boolean,
-  comment?: ICommentHasId,
+  comment?: Nullable<ICommentHasId>,
   errorMessage: string,
   cancelToDelete: () => void,
   confirmeToDelete: () => void,