Skip to content

Commit

Permalink
Fix url preview
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sumi-k committed Apr 9, 2024
1 parent 5f09a44 commit 2050d5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions admin/src/api/post/content-types/post/lifecycles.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ async function generatePreview(event) {
-webkit-box-orient:vertical;
"
>
${data.title || ""}
${data?.title || ""}
</h2>
<div style="margin-top: 8px">
<h3
Expand All @@ -287,7 +287,7 @@ async function generatePreview(event) {
-webkit-box-orient:vertical;
"
>
${data.description || ""}
${data?.description || ""}
</h3>
</div>
<div>
Expand All @@ -302,14 +302,14 @@ async function generatePreview(event) {
text-overflow: ellipsis;
"
>
${data.domain || ""}
${data?.domain || ""}
</p>
</div>
</div>
<div style="width: 160px">
<div
style="
background-image: url('${data.img || ""}');
background-image: url('${data?.img || ""}');
background-position: 50% 50%;
height: 167px;
width: 160px;
Expand Down

0 comments on commit 2050d5e

Please sign in to comment.