UPDATED ENV SUBSTITUTION

This commit is contained in:
Affan Shaikhsurab
2025-03-04 09:55:25 +00:00
parent 80f828b558
commit f133845c4f
2 changed files with 8 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ class _FormDataBodyState extends ConsumerState<FormDataWidget> {
key: ValueKey("$selectedId-$index-form-row-$seed"),
cells: <DataCell>[
DataCell(
EnvCellField(
CellField(
keyId: "$selectedId-$index-form-k-$seed",
initialValue: formRows[index].name,
hintText: kHintAddFieldName,

View File

@@ -85,6 +85,13 @@ HttpRequestModel substituteHttpRequestModel(
value: substituteVariables(param.value, envMap, activeEnvironmentId),
);
}).toList(),
formData: httpRequestModel.formData?.map((formData) {
return formData.copyWith(
name:
substituteVariables(formData.name, envMap, activeEnvironmentId) ?? "",
value: substituteVariables(formData.value, envMap, activeEnvironmentId) ?? "",
);
}).toList(),
body: substituteVariables(
httpRequestModel.body,
envMap,