mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 10:49:49 +08:00
fix: ensure executionRequestModel is a copy to avoid modifying the original request model
This commit is contained in:
@@ -281,11 +281,11 @@ class CollectionStateNotifier
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
RequestModel executionRequestModel = requestModel!;
|
RequestModel executionRequestModel = requestModel!.copyWith();
|
||||||
|
|
||||||
if (!requestModel.preRequestScript.isNullOrEmpty()) {
|
if (!requestModel.preRequestScript.isNullOrEmpty()) {
|
||||||
executionRequestModel = await handlePreRequestScript(
|
executionRequestModel = await handlePreRequestScript(
|
||||||
requestModel,
|
executionRequestModel,
|
||||||
originalEnvironmentModel,
|
originalEnvironmentModel,
|
||||||
(envModel, updatedValues) {
|
(envModel, updatedValues) {
|
||||||
ref
|
ref
|
||||||
|
|||||||
Reference in New Issue
Block a user