Skip to content

Commit

Permalink
prevent possible error with undefined imagesDynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
kadencewp committed Nov 5, 2024
1 parent 058aaa2 commit 41ba3c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blocks/advancedgallery/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ export default function GalleryEdit(props) {
/>
</BaseControl>
)}
{ids && undefined !== ids[0] && imagesDynamic.length > 1 && !dynamicSource && (
{ids && undefined !== ids[0] && imagesDynamic && imagesDynamic.length > 1 && !dynamicSource && (
<BaseControl __nextHasNoMarginBottom>
<Button
className="reverse-order"
Expand Down

0 comments on commit 41ba3c0

Please sign in to comment.