diff --git a/package.json b/package.json index 625e5c23..309172ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fsg-mod-assistant", - "version": "5.1.3", + "version": "5.1.4", "description": "FSG Farm Sim Mod Assistant", "main": "modAssist_main.js", "homepage": "https://github.com/FSGModding/FSG_Mod_Assistant#readme", diff --git a/renderer/renderJS/main_ui_lib.js b/renderer/renderJS/main_ui_lib.js index cdbad058..acc689aa 100644 --- a/renderer/renderJS/main_ui_lib.js +++ b/renderer/renderJS/main_ui_lib.js @@ -726,7 +726,11 @@ class StateManager { } if ( this.track.openCollection !== null ) { - this.collections[this.track.openCollection].modNode.classList.add('d-none') + if ( typeof this.collections[this.track.openCollection] === 'undefined' ) { + this.track.openCollection = null + } else { + this.collections[this.track.openCollection].modNode.classList.add('d-none') + } } if ( this.track.openCollection === id && !stayOpen ) {