From 2050d5e20237910a62bd44d16a62f1b156e432fa Mon Sep 17 00:00:00 2001 From: cp-sumi-k Date: Tue, 9 Apr 2024 10:18:37 +0530 Subject: [PATCH] Fix url preview --- admin/src/api/post/content-types/post/lifecycles.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/src/api/post/content-types/post/lifecycles.js b/admin/src/api/post/content-types/post/lifecycles.js index d12ba54..c6ba2c4 100644 --- a/admin/src/api/post/content-types/post/lifecycles.js +++ b/admin/src/api/post/content-types/post/lifecycles.js @@ -271,7 +271,7 @@ async function generatePreview(event) { -webkit-box-orient:vertical; " > - ${data.title || ""} + ${data?.title || ""}

- ${data.description || ""} + ${data?.description || ""}

@@ -302,14 +302,14 @@ async function generatePreview(event) { text-overflow: ellipsis; " > - ${data.domain || ""} + ${data?.domain || ""}