Skip to content

Commit 0e4583b

Browse files
authored
Use unused functions (#631)
* Map currentScan from state so watcher is active * Reset vuex state on app load
1 parent 92dbb3e commit 0e4583b

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

web_client/src/main.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ Sentry.init({
4949
// If user closes the tab, we want them to be logged out if they return to the page
5050
await setupHeartbeat('miqa_logout_heartbeat', async () => { oauthClient.logout(); });
5151
await djangoRest.restoreLogin(store);
52-
await Promise.all([store.dispatch.loadMe(), store.dispatch.loadConfiguration()]);
52+
await Promise.all([
53+
store.dispatch.reset(),
54+
store.dispatch.loadMe(),
55+
store.dispatch.loadConfiguration(),
56+
]);
5357

5458
new Vue({
5559
vuetify,

web_client/src/views/Scan.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export default {
5151
'scanFrames',
5252
'loadingFrame',
5353
'errorLoadingFrame',
54+
'currentScan',
5455
]),
5556
currentScanFrames() {
5657
return this.scanFrames[this.currentScan.id];

0 commit comments

Comments
 (0)