From 79ed156595e3d52dbe51d00a489b2d0db96b1967 Mon Sep 17 00:00:00 2001 From: amiraabouhadid Date: Sun, 15 Dec 2024 12:25:00 +0200 Subject: [PATCH] add conditional to check for logs.value before pushing item --- packages/playground/src/components/logger.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/playground/src/components/logger.vue b/packages/playground/src/components/logger.vue index eb6b42df87..0fe8ced3ef 100644 --- a/packages/playground/src/components/logger.vue +++ b/packages/playground/src/components/logger.vue @@ -235,9 +235,10 @@ export default { timestamp: log.timestamp, message: log.messages.map(IndexedDBClient.serializer.serialize).join(" ").replace(/\n\s/g, "\n"), }); - - logs.value.push(item); - scrollToBottom(); + if (logs.value) { + logs.value.push(item); + scrollToBottom(); + } } }