mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +08:00
Improved ShallowCopy of AIRequestModel and substructures
This commit is contained in:
@@ -168,8 +168,8 @@ class CollectionStateNotifier
|
|||||||
requestTabIndex: 0,
|
requestTabIndex: 0,
|
||||||
responseStatus: null,
|
responseStatus: null,
|
||||||
message: null,
|
message: null,
|
||||||
httpRequestModel: currentModel.httpRequestModel?.copyWith(),
|
httpRequestModel: currentModel.httpRequestModel,
|
||||||
aiRequestModel: currentModel.aiRequestModel?.copyWith(),
|
aiRequestModel: currentModel.aiRequestModel?.clone(),
|
||||||
httpResponseModel: null,
|
httpResponseModel: null,
|
||||||
isWorking: false,
|
isWorking: false,
|
||||||
sendingTime: null,
|
sendingTime: null,
|
||||||
@@ -197,7 +197,7 @@ class CollectionStateNotifier
|
|||||||
apiType: aT,
|
apiType: aT,
|
||||||
id: newId,
|
id: newId,
|
||||||
name: "${currentModel.metaData.name} (history)",
|
name: "${currentModel.metaData.name} (history)",
|
||||||
aiRequestModel: currentModel.aiRequestModel,
|
aiRequestModel: currentModel.aiRequestModel?.clone(),
|
||||||
httpRequestModel: currentModel.httpRequestModel ?? HttpRequestModel(),
|
httpRequestModel: currentModel.httpRequestModel ?? HttpRequestModel(),
|
||||||
responseStatus: currentModel.metaData.responseStatus,
|
responseStatus: currentModel.metaData.responseStatus,
|
||||||
message: kResponseCodeReasons[currentModel.metaData.responseStatus],
|
message: kResponseCodeReasons[currentModel.metaData.responseStatus],
|
||||||
|
|||||||
Reference in New Issue
Block a user