From 4324932fc9c37a8cd44962d82bafc04d3647fe0b Mon Sep 17 00:00:00 2001 From: wancat Date: Mon, 1 Jul 2024 10:41:26 +0800 Subject: [PATCH] fix: exception not showing --- app/src/store/session.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/store/session.ts b/app/src/store/session.ts index c4669c9..5845ea8 100644 --- a/app/src/store/session.ts +++ b/app/src/store/session.ts @@ -58,7 +58,9 @@ const useSession = defineStore('session', { if (!this.session) return this.session.responses.push(response.responses) this.session.hints.push(response.hints) - this.session.tasks = response.tasks + if (response.tasks) { + this.session.tasks = response.tasks + } this.session.status = response.status }, reset() {