mirror of
https://github.com/foss42/apidash.git
synced 2025-12-05 20:40:02 +08:00
UPDATED ENV SUBSTITUTION
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user