Skip to content

Commit 03d342b

Browse files
authored
Merge pull request #3334 from Vizzuality/fix/modal-meta-dependency
fix/modal-meta-dependency
2 parents 4d27da6 + 4d30a29 commit 03d342b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/javascript/components/dropdown/dropdown.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const mapStateToProps = (
1919
const activeLabel = (activeValue && activeValue.label) || noSelectedValue;
2020

2121
return {
22-
modalOpen: modalMeta.open,
23-
modalClosing: modalMeta.closing,
22+
modalOpen: modalMeta ? modalMeta.open : false,
23+
modalClosing: modalMeta ? modalMeta.closing : false,
2424
isDeviceTouch: isTouch(),
2525
activeValue,
2626
activeLabel

0 commit comments

Comments
 (0)