Skip to content

Commit

Permalink
Fixed null replacement in json (#6501)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhovsepy committed Aug 22, 2023
1 parent de21222 commit 0eb3eaa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class IstioConfigDetailsPageComponent extends React.Component<IstioConfigDetails
jsYaml.safeLoadAll(this.state.yamlModified, (objectModified: object) => {
const jsonPatch = JSON.stringify(
mergeJsonPatch(objectModified, getIstioObject(this.state.istioObjectDetails))
).replace(new RegExp('"(,null)+]', 'g'), '"]');
).replace(new RegExp('(,null)+]', 'g'), ']');
API.updateIstioConfigDetail(
this.props.istioConfigId.namespace,
this.props.istioConfigId.objectType,
Expand Down

0 comments on commit 0eb3eaa

Please sign in to comment.