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