From d49099baebb81b5a4f3e110f071cddb2cd09d2ff Mon Sep 17 00:00:00 2001
From: Mar0xy <marie@kaifa.ch>
Date: Sun, 22 Oct 2023 19:19:44 +0200
Subject: upd: add additional checks

---
 packages/frontend/src/components/SkOldNoteWindow.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'packages/frontend/src/components/SkOldNoteWindow.vue')

diff --git a/packages/frontend/src/components/SkOldNoteWindow.vue b/packages/frontend/src/components/SkOldNoteWindow.vue
index f3dfa4858e..522348f6b9 100644
--- a/packages/frontend/src/components/SkOldNoteWindow.vue
+++ b/packages/frontend/src/components/SkOldNoteWindow.vue
@@ -120,7 +120,7 @@ if (noteViewInterruptors.length > 0) {
 }
 
 const replaceContent = () => {
-	note.text = props.oldText;
+	props.oldText ? note.text = props.oldText : undefined;
 	note.createdAt = props.updatedAt;
 };
 replaceContent();
-- 
cgit v1.2.3-freya

