fix NPE for config update event

This commit is contained in:
Adam 2022-06-26 14:57:14 +02:00
parent dacb6f62c4
commit c9df87e5e0

View file

@ -38,7 +38,7 @@ function allMods(e: ConfigurationChangedData): ConfigurationUpdateModData[] {
return modNames.map((modName) => {
let currentVer = script.active_mods[modName] ?? e.mod_changes[modName].new_version ?? null
let currentVer = script.active_mods[modName] ?? e.mod_changes[modName]?.new_version ?? null
let previousVer = e.mod_changes[modName]?.old_version ?? null
return {