From 5f09a4420d1ae6e4eba04fab09728d567ef871d6 Mon Sep 17 00:00:00 2001 From: cp-sumi-k Date: Tue, 9 Apr 2024 10:17:23 +0530 Subject: [PATCH 1/2] Fix url preview --- admin/src/api/post/content-types/post/lifecycles.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/admin/src/api/post/content-types/post/lifecycles.js b/admin/src/api/post/content-types/post/lifecycles.js index 2f760ad..d12ba54 100644 --- a/admin/src/api/post/content-types/post/lifecycles.js +++ b/admin/src/api/post/content-types/post/lifecycles.js @@ -245,7 +245,9 @@ async function generatePreview(event) { box-shadow: rgb(242, 242, 242) 0px 0px 0px 1px inset; " > - +
- ${data.title} + ${data.title || ""}

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

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

Date: Tue, 9 Apr 2024 10:18:37 +0530 Subject: [PATCH 2/2] 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 || ""}