mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-23 17:28:44 +00:00
Fix JS crash in EditablePanel component (#2222)
This commit is contained in:
parent
608361ce20
commit
44a69e8a73
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ export class EditablePanel<T = {}> extends React.Component<EditablePanelProps<T>
|
|||
}
|
||||
|
||||
public UNSAFE_componentWillReceiveProps(nextProps: EditablePanelProps<T>) {
|
||||
if (JSON.stringify(this.props.values) !== JSON.stringify(nextProps.values)) {
|
||||
if (this.formApi && JSON.stringify(this.props.values) !== JSON.stringify(nextProps.values)) {
|
||||
this.formApi.setAllValues(nextProps.values);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue