From ba32e9152030dce05e624e682662792f927cbaf6 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Thu, 19 Jun 2025 13:09:06 +0200 Subject: [PATCH] add another instance of payload replacer --- .../changeRequest/ChangeRequest/Changes/Change/EditChange.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/EditChange.tsx b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/EditChange.tsx index 3cac329927..bb60ca07b9 100644 --- a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/EditChange.tsx +++ b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/EditChange.tsx @@ -26,6 +26,7 @@ import { FeatureStrategyForm } from '../../../../feature/FeatureStrategy/Feature import { NewStrategyVariants } from 'component/feature/StrategyTypes/NewStrategyVariants'; import { v4 as uuidv4 } from 'uuid'; import { constraintId } from 'constants/constraintId.ts'; +import { apiPayloadConstraintReplacer } from 'utils/api-payload-constraint-replacer.ts'; interface IEditChangeProps { change: IChangeRequestAddStrategy | IChangeRequestUpdateStrategy; @@ -208,7 +209,7 @@ export const formatUpdateStrategyApiCode = ( } const url = `${unleashUrl}/api/admin/projects/${projectId}/change-requests/${changeRequestId}/changes/${changeId}`; - const payload = JSON.stringify(strategy, undefined, 2); + const payload = JSON.stringify(strategy, apiPayloadConstraintReplacer, 2); return `curl --location --request PUT '${url}' \\ --header 'Authorization: INSERT_API_KEY' \\