0
0
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:
Charlie Humphreys
2022-08-27 00:52:44 -05:00
parent 5227bbc1d4
commit 6aa9eda5fb

View File

@@ -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,