File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
resources/scripts/components/server/backups Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments