fix: check for null item when reindexing backup

This commit is contained in:
thecodrr
2021-08-17 10:07:02 +05:00
parent af279be57b
commit 1eee95868a

View File

@@ -183,6 +183,10 @@ function filterData(data) {
function reindex(data) {
for (let key in data) {
const item = data[key];
if (!item) {
delete data[key];
continue;
}
switch (item.type) {
case "notebook":
if (!data["notebooks"]) data["notebooks"] = [];