mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 16:22:44 +00:00
update if in stringArrayEditor.jsx componentDidUpdate
This commit is contained in:
@@ -28,7 +28,7 @@ const StringArrayEditor = createClass({
|
||||
},
|
||||
|
||||
componentDidUpdate : function(prevProps) {
|
||||
if(!_.eq(this.props, prevProps)) {
|
||||
if(!_.eq(this.props.values, prevProps.values)) {
|
||||
this.setState({
|
||||
valueContext : this.props.values ? this.props.values.map((newValue)=>({
|
||||
value : newValue,
|
||||
|
||||
Reference in New Issue
Block a user