Missing presets bugfix.

This commit is contained in:
Blaz Kristan 2022-08-14 22:16:42 +02:00
parent 1de009a80d
commit e6f74751d4
2 changed files with 890 additions and 888 deletions

View File

@ -440,7 +440,8 @@ function loadPresets(callback = null)
method: 'get' method: 'get'
}) })
.then(res => { .then(res => {
if (!res.ok) showErrorToast(); if (res.status=="404") return {"0":{}};
//if (!res.ok) showErrorToast();
return res.json(); return res.json();
}) })
.then(json => { .then(json => {
@ -449,7 +450,7 @@ function loadPresets(callback = null)
populatePresets(); populatePresets();
}) })
.catch((e)=>{ .catch((e)=>{
showToast(e, true); //showToast(e, true);
presetError(false); presetError(false);
}) })
.finally(()=>{ .finally(()=>{

File diff suppressed because it is too large Load Diff