From 41ba3c0fcc57160e795f3de1bcc56704445d4657 Mon Sep 17 00:00:00 2001 From: Ben Ritner Date: Mon, 4 Nov 2024 17:32:03 -0700 Subject: [PATCH] prevent possible error with undefined imagesDynamic --- src/blocks/advancedgallery/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blocks/advancedgallery/edit.js b/src/blocks/advancedgallery/edit.js index 09bdd3910..0898577ee 100644 --- a/src/blocks/advancedgallery/edit.js +++ b/src/blocks/advancedgallery/edit.js @@ -1334,7 +1334,7 @@ export default function GalleryEdit(props) { /> )} - {ids && undefined !== ids[0] && imagesDynamic.length > 1 && !dynamicSource && ( + {ids && undefined !== ids[0] && imagesDynamic && imagesDynamic.length > 1 && !dynamicSource && (