From ca553b9d3cb82aa6f1eacc373d9fb4b883bce397 Mon Sep 17 00:00:00 2001 From: Akash K <57758277+amk-dev@users.noreply.github.com> Date: Mon, 27 Jun 2022 22:24:38 +0530 Subject: [PATCH] fix: empty string exported when exporting team collections (#2460) --- .../hoppscotch-app/components/collections/ImportExport.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/hoppscotch-app/components/collections/ImportExport.vue b/packages/hoppscotch-app/components/collections/ImportExport.vue index ff7b53007..3198b9818 100644 --- a/packages/hoppscotch-app/components/collections/ImportExport.vue +++ b/packages/hoppscotch-app/components/collections/ImportExport.vue @@ -244,7 +244,7 @@ const createCollectionGist = async () => { return } - getJSONCollection() + await getJSONCollection() try { const res = await axios.$post( @@ -316,8 +316,8 @@ const importToTeams = async (content: HoppCollection) => { importingMyCollections.value = false } -const exportJSON = () => { - getJSONCollection() +const exportJSON = async () => { + await getJSONCollection() const dataToWrite = collectionJson.value const file = new Blob([dataToWrite], { type: "application/json" })