Правка багов

This commit is contained in:
Book Pauk
2019-10-18 09:06:04 +07:00
parent d505fd0795
commit c60f0991df
2 changed files with 7 additions and 0 deletions

View File

@@ -251,6 +251,7 @@ class RecentBooksPage extends Vue {
}
if (this.tableData.length > result.length)
this.tableData.splice(result.length);*/
this.tableData = result;
this.updating = false;
}

View File

@@ -439,6 +439,12 @@ class BookManager {
const mergedRecent = _.cloneDeep(this.recent);
Object.assign(mergedRecent, value);
//подстраховка
for (let i of Object.keys(mergedRecent)) {
if (!mergedRecent[i].key || mergedRecent[i].key !== i)
delete mergedRecent[i];
}
//"ленивое" обновление хранилища
(async() => {