WebHost: Prevent dict type options with valid_keys from exporting with [] on weighted settings. (#1762)

Thanks HK.
This commit is contained in:
Zach Parks
2023-05-06 19:07:57 -05:00
committed by GitHub
parent d3447a3983
commit c8ebad1dfe

View File

@@ -109,7 +109,7 @@ def create():
"defaultValue": list(option.default)
}
elif issubclass(option, Options.VerifyKeys):
elif issubclass(option, Options.VerifyKeys) and not issubclass(option, Options.OptionDict):
if option.valid_keys:
game_options[option_name] = {
"type": "custom-list",