Prevent null in captions...
This commit is contained in:
parent
249a31d11a
commit
ebea10059e
@ -248,8 +248,9 @@ UI.imageGallery = function (galleryId, items, video = false) {
|
|||||||
let gallery = [];
|
let gallery = [];
|
||||||
for (let media of items) {
|
for (let media of items) {
|
||||||
let author = media.author ? ` (${media.author})` : '';
|
let author = media.author ? ` (${media.author})` : '';
|
||||||
|
let caption = media.caption ?? '';
|
||||||
let mediaObj = {
|
let mediaObj = {
|
||||||
description: media.caption + author
|
description: caption + author
|
||||||
};
|
};
|
||||||
|
|
||||||
if (video) {
|
if (video) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user