mirror of
https://github.com/foss42/apidash.git
synced 2025-12-09 23:02:21 +08:00
feat: wipe current request data before making changes
This commit is contained in:
@@ -417,6 +417,10 @@ class ChatViewmodel extends StateNotifier<ChatState> {
|
||||
body: body,
|
||||
bodyContentType: bodyContentType,
|
||||
formData: formData.isEmpty ? null : formData,
|
||||
// Wipe existing parameters and authentication to ensure clean state
|
||||
params: const [],
|
||||
isParamEnabledList: const [],
|
||||
authModel: null,
|
||||
);
|
||||
_appendSystem('Applied OpenAPI operation to the selected request.',
|
||||
ChatMessageType.importOpenApi);
|
||||
@@ -911,6 +915,10 @@ class ChatViewmodel extends StateNotifier<ChatState> {
|
||||
body: body,
|
||||
bodyContentType: bodyContentType,
|
||||
formData: formData.isEmpty ? null : formData,
|
||||
// Wipe existing parameters and authentication to ensure clean state
|
||||
params: const [],
|
||||
isParamEnabledList: const [],
|
||||
authModel: null,
|
||||
);
|
||||
_appendSystem(
|
||||
'Applied cURL to the selected request.', ChatMessageType.importCurl);
|
||||
|
||||
Reference in New Issue
Block a user