Skip to content

Commit 5653b03

Browse files
committed
cleanup BackupContextMenu.tsx
1 parent 582521f commit 5653b03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/scripts/components/server/backups/BackupContextMenu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default ({ backup }: Props) => {
6060
});
6161
};
6262

63-
const doRestorationAction = (truncate: boolean) => {
63+
const doRestorationAction = () => {
6464
setLoading(true);
6565
clearFlashes('backups');
6666
restoreServerBackup(uuid, backup.uuid, truncate)
@@ -88,7 +88,7 @@ export default ({ backup }: Props) => {
8888
visible={modal === 'restore'}
8989
title={'Restore this backup?'}
9090
buttonText={'Restore backup'}
91-
onConfirmed={() => doRestorationAction(truncate)}
91+
onConfirmed={() => doRestorationAction()}
9292
onModalDismissed={() => setModal('')}
9393
>
9494
<p css={tw`text-neutral-300`}>
@@ -110,7 +110,7 @@ export default ({ backup }: Props) => {
110110
id={'restore_truncate'}
111111
value={'true'}
112112
checked={truncate}
113-
onChange={() => setTruncate(!truncate)}
113+
onChange={() => setTruncate(s => !s)}
114114
/>
115115
Remove all files and folders before restoring this backup.
116116
</label>

0 commit comments

Comments
 (0)