@@ -27,7 +27,7 @@ let setFocus = (input) => {
2727 }
2828}
2929
30- function compareValue ( info , value , onChangeCompareTo , active ) {
30+ function compareValue ( info , value , onChangeCompareTo , active , parentContentId ) {
3131 switch ( info . type ) {
3232 case null :
3333 return null ;
@@ -70,7 +70,8 @@ function compareValue(info, value, onChangeCompareTo, active) {
7070 className = { styles . date }
7171 value = { Parse . _decode ( 'date' , value ) }
7272 onChange = { ( value ) => onChangeCompareTo ( Parse . _encode ( value ) ) }
73- ref = { setFocus } />
73+ ref = { setFocus }
74+ parentContentId = { parentContentId } />
7475 ) ;
7576 }
7677}
@@ -87,6 +88,7 @@ let FilterRow = ({
8788 onChangeCompareTo,
8889 onDeleteRow,
8990 active,
91+ parentContentId,
9092 } ) => (
9193 < div className = { styles . row } >
9294 < ChromeDropdown
@@ -100,7 +102,7 @@ let FilterRow = ({
100102 value = { Constraints [ currentConstraint ] . name }
101103 options = { constraints . map ( ( c ) => Constraints [ c ] . name ) }
102104 onChange = { ( c ) => onChangeConstraint ( constraintLookup [ c ] ) } />
103- { compareValue ( compareInfo , compareTo , onChangeCompareTo , active ) }
105+ { compareValue ( compareInfo , compareTo , onChangeCompareTo , active , parentContentId ) }
104106 < 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 >
105107 </ div >
106108) ;
0 commit comments