Import from postman is live

This commit is contained in:
Ashita Prasad
2024-12-26 05:22:19 +05:30
parent 6c49712c1a
commit 27f2a85904
2 changed files with 2 additions and 2 deletions

View File

@ -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(

View File

@ -11,7 +11,7 @@ class Importer {
.getHttpRequestModelList(content)
?.map((t) => (null, t))
.toList(),
ImportFormat.postman => null
ImportFormat.postman => PostmanIO().getHttpRequestModelList(content),
};
}
}