Fix weighted-settings page (#2408)
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.
This commit is contained in:
parent
560c57fedd
commit
5726d2f962
|
@ -43,7 +43,7 @@ const resetSettings = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const fetchSettingData = () => new Promise((resolve, reject) => {
|
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)); }
|
try{ response.json().then((jsonObj) => resolve(jsonObj)); }
|
||||||
catch(error){ reject(error); }
|
catch(error){ reject(error); }
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue