mirror of
https://github.com/foss42/apidash.git
synced 2025-06-03 08:16:25 +08:00
Import from postman is live
This commit is contained in:
@ -34,7 +34,7 @@ void importToCollectionPane(
|
||||
sm.showSnackBar(
|
||||
getSnackBar("No requests imported", small: false));
|
||||
} else {
|
||||
for (var model in importedRequestModels) {
|
||||
for (var model in importedRequestModels.reversed) {
|
||||
ref
|
||||
.read(collectionStateNotifierProvider.notifier)
|
||||
.addRequestModel(
|
||||
|
@ -11,7 +11,7 @@ class Importer {
|
||||
.getHttpRequestModelList(content)
|
||||
?.map((t) => (null, t))
|
||||
.toList(),
|
||||
ImportFormat.postman => null
|
||||
ImportFormat.postman => PostmanIO().getHttpRequestModelList(content),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user