From 5653b03ddbf8d7a1b43d48c924518b3f9e498b19 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Fri, 12 Mar 2021 15:40:45 -0700 Subject: [PATCH] cleanup BackupContextMenu.tsx --- .../scripts/components/server/backups/BackupContextMenu.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/scripts/components/server/backups/BackupContextMenu.tsx b/resources/scripts/components/server/backups/BackupContextMenu.tsx index 42311d22..06f101ba 100644 --- a/resources/scripts/components/server/backups/BackupContextMenu.tsx +++ b/resources/scripts/components/server/backups/BackupContextMenu.tsx @@ -60,7 +60,7 @@ export default ({ backup }: Props) => { }); }; - const doRestorationAction = (truncate: boolean) => { + const doRestorationAction = () => { setLoading(true); clearFlashes('backups'); restoreServerBackup(uuid, backup.uuid, truncate) @@ -88,7 +88,7 @@ export default ({ backup }: Props) => { visible={modal === 'restore'} title={'Restore this backup?'} buttonText={'Restore backup'} - onConfirmed={() => doRestorationAction(truncate)} + onConfirmed={() => doRestorationAction()} onModalDismissed={() => setModal('')} >

@@ -110,7 +110,7 @@ export default ({ backup }: Props) => { id={'restore_truncate'} value={'true'} checked={truncate} - onChange={() => setTruncate(!truncate)} + onChange={() => setTruncate(s => !s)} /> Remove all files and folders before restoring this backup.