mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 20:56:54 +00:00
update if in stringArrayEditor.jsx componentDidUpdate
This commit is contained in:
1 parent
5227bbc1d4
commit
6aa9eda5fb
1 file changed
+1
-1
@@ -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