[WebHost] weighted-settings: Include new option types when creating the default settings

This commit is contained in:
Chris Wilson 2022-01-11 18:06:22 -05:00
parent 01d6735803
commit 684bb736bc
1 changed files with 7 additions and 0 deletions

View File

@ -85,6 +85,13 @@ const createDefaultSettings = (settingData) => {
newSettings[game][gameSetting]['random-low'] = 0;
newSettings[game][gameSetting]['random-high'] = 0;
break;
case 'items-list':
case 'locations-list':
case 'custom-list':
newSettings[game][gameSetting] = [];
break;
default:
console.error(`Unknown setting type for ${game} setting ${gameSetting}: ${setting.type}`);
}