fixed: do not override local data if remote data is empty

This commit is contained in:
quenousimporte 2023-11-03 14:59:37 +01:00
parent 37eed8736f
commit afd3aeab37
1 changed files with 5 additions and 2 deletions

View File

@ -1282,9 +1282,12 @@ function init()
{
queryremote({action: "fetch"})
.then(data =>
{
if (data.length)
{
window.localStorage.setItem("data", JSON.stringify(data));
loadstorage();
}
})
.catch(err =>
{