fix: trash restore (#1446)

Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com>
Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
VictorNanka
2023-03-17 11:55:35 +09:00
committed by GitHub
parent d1722bc235
commit 110cec7bf6
2 changed files with 3 additions and 6 deletions

View File

@@ -118,7 +118,6 @@ export const TrashOperationCell: React.FC<TrashOperationCellProps> = ({
pageMeta,
onPermanentlyDeletePage,
onRestorePage,
onOpenPage,
}) => {
const { id, title } = pageMeta;
const { t } = useTranslation();
@@ -132,7 +131,6 @@ export const TrashOperationCell: React.FC<TrashOperationCellProps> = ({
onClick={() => {
onRestorePage(id);
toast(t('restored', { title: title || 'Untitled' }));
onOpenPage(id);
}}
>
<ResetIcon />