diff --git a/resources/mmv/ui/mmv.ui.reuse.dialog.js b/resources/mmv/ui/mmv.ui.reuse.dialog.js index 28a004a0e..ada89f46b 100644 --- a/resources/mmv/ui/mmv.ui.reuse.dialog.js +++ b/resources/mmv/ui/mmv.ui.reuse.dialog.js @@ -94,7 +94,13 @@ this.ooTabs.embed ] ); - this.selectedTab = this.getLastUsedTab() || 'download'; + this.selectedTab = this.getLastUsedTab(); + + // In case nothing is saved in localStorage or it contains junk + if ( ! this.tabs.hasOwnProperty( this.selectedTab ) ) { + this.selectedTab = 'download'; + } + this.reuseTabs.selectItem( this.ooTabs[this.selectedTab] ); if ( this.dependenciesNeedToBeAttached ) {