File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
admin/src/api/post/content-types/post Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ async function generatePreview(event) {
271
271
-webkit-box-orient:vertical;
272
272
"
273
273
>
274
- ${ data . title || "" }
274
+ ${ data ? .title || "" }
275
275
</h2>
276
276
<div style="margin-top: 8px">
277
277
<h3
@@ -287,7 +287,7 @@ async function generatePreview(event) {
287
287
-webkit-box-orient:vertical;
288
288
"
289
289
>
290
- ${ data . description || "" }
290
+ ${ data ? .description || "" }
291
291
</h3>
292
292
</div>
293
293
<div>
@@ -302,14 +302,14 @@ async function generatePreview(event) {
302
302
text-overflow: ellipsis;
303
303
"
304
304
>
305
- ${ data . domain || "" }
305
+ ${ data ? .domain || "" }
306
306
</p>
307
307
</div>
308
308
</div>
309
309
<div style="width: 160px">
310
310
<div
311
311
style="
312
- background-image: url('${ data . img || "" } ');
312
+ background-image: url('${ data ? .img || "" } ');
313
313
background-position: 50% 50%;
314
314
height: 167px;
315
315
width: 160px;
You can’t perform that action at this time.
0 commit comments