feature/gabinete-search

This commit is contained in:
Peter Maquiran
2023-07-10 15:09:04 +01:00
parent 8a374730d3
commit 2fdffbecf9
6 changed files with 16 additions and 19 deletions
+4 -1
View File
@@ -26,7 +26,10 @@ export function GET({key, localStorage, instance}) {
}
} else {
return JSON.parse(localStorage.getItem(prefix() + key))
const restoredData = JSON.parse(localStorage.getItem(prefix() + key))
Object.assign(instance, restoredData);
return restoredData
}
}