We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3370abc commit eeb5ef4Copy full SHA for eeb5ef4
src/components/common/editable-pairs.tsx
@@ -111,7 +111,8 @@ export class EditablePairs<R> extends React.Component<EditablePairsProps<R>> {
111
this.values = _.cloneDeep(pairs);
112
this.lastValuesLength = this.values.length;
113
}
114
- }
+ },
115
+ { equals: comparer.structural }
116
));
117
118
disposeOnUnmount(this, autorun(() => {
@@ -140,7 +141,7 @@ export class EditablePairs<R> extends React.Component<EditablePairsProps<R>> {
140
141
if (this.props.convertResult) {
142
return this.props.convertResult(pairs);
143
} else {
- return pairs as unknown as R;
144
+ return _.cloneDeep(pairs) as unknown as R;
145
146
};
147
0 commit comments