From 59c761fe32ae59a8bb551fc94396372effb84d55 Mon Sep 17 00:00:00 2001 From: afeefuddin Date: Sun, 24 Mar 2024 16:02:41 +0530 Subject: [PATCH] lightbox: Pass HTMLElement consistently to parse_media_data. --- web/src/lightbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/lightbox.js b/web/src/lightbox.js index 6f8016097f..2b33b15c5b 100644 --- a/web/src/lightbox.js +++ b/web/src/lightbox.js @@ -359,7 +359,7 @@ export function build_open_media_function(on_close) { payload = asset_map.get($preview_src); } if (payload === undefined) { - payload = parse_media_data($media); + payload = parse_media_data($media[0]); } }