@@ -27,7 +27,7 @@ let setFocus = (input) => {
27
27
}
28
28
}
29
29
30
- function compareValue ( info , value , onChangeCompareTo , active ) {
30
+ function compareValue ( info , value , onChangeCompareTo , active , parentContentId ) {
31
31
switch ( info . type ) {
32
32
case null :
33
33
return null ;
@@ -70,7 +70,8 @@ function compareValue(info, value, onChangeCompareTo, active) {
70
70
className = { styles . date }
71
71
value = { Parse . _decode ( 'date' , value ) }
72
72
onChange = { ( value ) => onChangeCompareTo ( Parse . _encode ( value ) ) }
73
- ref = { setFocus } />
73
+ ref = { setFocus }
74
+ parentContentId = { parentContentId } />
74
75
) ;
75
76
}
76
77
}
@@ -87,6 +88,7 @@ let FilterRow = ({
87
88
onChangeCompareTo,
88
89
onDeleteRow,
89
90
active,
91
+ parentContentId,
90
92
} ) => (
91
93
< div className = { styles . row } >
92
94
< ChromeDropdown
@@ -100,7 +102,7 @@ let FilterRow = ({
100
102
value = { Constraints [ currentConstraint ] . name }
101
103
options = { constraints . map ( ( c ) => Constraints [ c ] . name ) }
102
104
onChange = { ( c ) => onChangeConstraint ( constraintLookup [ c ] ) } />
103
- { compareValue ( compareInfo , compareTo , onChangeCompareTo , active ) }
105
+ { compareValue ( compareInfo , compareTo , onChangeCompareTo , active , parentContentId ) }
104
106
< a role = 'button' href = 'javascript:;' className = { styles . remove } onClick = { onDeleteRow } > < Icon name = 'minus-solid' width = { 14 } height = { 14 } fill = 'rgba(0,0,0,0.4)' /> </ a >
105
107
</ div >
106
108
) ;
0 commit comments