Skip to content

Commit f133845

Browse files
UPDATED ENV SUBSTITUTION
1 parent 80f828b commit f133845

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lib/screens/home_page/editor_pane/details_card/request_pane/request_form_data.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class _FormDataBodyState extends ConsumerState<FormDataWidget> {
8383
key: ValueKey("$selectedId-$index-form-row-$seed"),
8484
cells: <DataCell>[
8585
DataCell(
86-
EnvCellField(
86+
CellField(
8787
keyId: "$selectedId-$index-form-k-$seed",
8888
initialValue: formRows[index].name,
8989
hintText: kHintAddFieldName,

lib/utils/envvar_utils.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ HttpRequestModel substituteHttpRequestModel(
8585
value: substituteVariables(param.value, envMap, activeEnvironmentId),
8686
);
8787
}).toList(),
88+
formData: httpRequestModel.formData?.map((formData) {
89+
return formData.copyWith(
90+
name:
91+
substituteVariables(formData.name, envMap, activeEnvironmentId) ?? "",
92+
value: substituteVariables(formData.value, envMap, activeEnvironmentId) ?? "",
93+
);
94+
}).toList(),
8895
body: substituteVariables(
8996
httpRequestModel.body,
9097
envMap,

0 commit comments

Comments
 (0)