Skip to content

Commit

Permalink
Fix weighted-settings page (#2408)
Browse files Browse the repository at this point in the history
The request for the JSON file that provides the setting data was missed during the rename in #2037, so prior to this the weighted settings page wasn't rendering at all.
  • Loading branch information
nex3 authored Oct 31, 2023
1 parent 560c57f commit 5726d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebHostLib/static/assets/weighted-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const resetSettings = () => {
};

const fetchSettingData = () => new Promise((resolve, reject) => {
fetch(new Request(`${window.location.origin}/static/generated/weighted-settings.json`)).then((response) => {
fetch(new Request(`${window.location.origin}/static/generated/weighted-options.json`)).then((response) => {
try{ response.json().then((jsonObj) => resolve(jsonObj)); }
catch(error){ reject(error); }
});
Expand Down

0 comments on commit 5726d2f

Please sign in to comment.