Skip to content

Commit 4d30a29

Browse files
committed
reduce the modal-meta component dependency
1 parent e52af19 commit 4d30a29

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)