From 3faf653e5f438b0eaf70aab94df25720e2c50afd Mon Sep 17 00:00:00 2001 From: Phillip Kelley-Dotson Date: Fri, 20 Aug 2021 16:46:55 -0700 Subject: [PATCH] initial commit (#16366) --- .../explore/components/controls/CollectionControl/index.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/superset-frontend/src/explore/components/controls/CollectionControl/index.jsx b/superset-frontend/src/explore/components/controls/CollectionControl/index.jsx index 8cadbf27f..384d23ed0 100644 --- a/superset-frontend/src/explore/components/controls/CollectionControl/index.jsx +++ b/superset-frontend/src/explore/components/controls/CollectionControl/index.jsx @@ -80,8 +80,9 @@ class CollectionControl extends React.Component { } onChange(i, value) { - Object.assign(this.props.value[i], value); - this.props.onChange(this.props.value); + const newValue = [...this.props.value]; + newValue[i] = { ...this.props.value[i], ...value }; + this.props.onChange(newValue); } onAdd() {