mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +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;
|
||||
}
|
||||
|
||||
RequestModel executionRequestModel = requestModel!;
|
||||
RequestModel executionRequestModel = requestModel!.copyWith();
|
||||
|
||||
if (!requestModel.preRequestScript.isNullOrEmpty()) {
|
||||
executionRequestModel = await handlePreRequestScript(
|
||||
requestModel,
|
||||
executionRequestModel,
|
||||
originalEnvironmentModel,
|
||||
(envModel, updatedValues) {
|
||||
ref
|
||||
|
||||
Reference in New Issue
Block a user