Skip to content

Commit 99640fd

Browse files
committed
Fix error when we can't fetch heartbeats
1 parent aaaffea commit 99640fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web/store/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,9 @@ export const actions = {
305305
},
306306
})
307307

308-
await context.dispatch('getHeartbeat')
309-
context.commit('setThreads', response.data.data)
308+
// eslint-disable-next-line no-console
309+
context.dispatch('getHeartbeat').catch(console.error)
310+
await context.commit('setThreads', response.data.data)
310311
},
311312

312313
async loadBillingUsage(context: ActionContext<State, State>) {

0 commit comments

Comments
 (0)