From 6aa9eda5fb0b783d066288e2064f662cea9c9b92 Mon Sep 17 00:00:00 2001 From: Charlie Humphreys Date: Sat, 27 Aug 2022 00:52:44 -0500 Subject: [PATCH] update if in stringArrayEditor.jsx componentDidUpdate --- client/homebrew/editor/stringArrayEditor/stringArrayEditor.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/homebrew/editor/stringArrayEditor/stringArrayEditor.jsx b/client/homebrew/editor/stringArrayEditor/stringArrayEditor.jsx index 0d5dd081f..790cfba95 100644 --- a/client/homebrew/editor/stringArrayEditor/stringArrayEditor.jsx +++ b/client/homebrew/editor/stringArrayEditor/stringArrayEditor.jsx @@ -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,