Browse Source

fix: logs not saved after being cleared (#1142)

Ahmad Kholid 2 years ago
parent
commit
f5c8e7400c
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/components/newtab/app/AppLogsItems.vue

+ 4 - 1
src/components/newtab/app/AppLogsItems.vue

@@ -290,7 +290,10 @@ function clearLogs() {
     okVariant: 'danger',
     body: t('log.clearLogs.description'),
     onConfirm: () => {
-      dbLogs.delete();
+      dbLogs.items.clear();
+      dbLogs.ctxData.clear();
+      dbLogs.logsData.clear();
+      dbLogs.histories.clear();
     },
   });
 }