diff --git a/components/collections/ImportExport.vue b/components/collections/ImportExport.vue index 76578ee42..85a7dbec2 100644 --- a/components/collections/ImportExport.vue +++ b/components/collections/ImportExport.vue @@ -195,13 +195,14 @@ export default { }, methods: { async createCollectionGist() { + this.getJSONCollection() await this.$axios .$post( "https://api.github.com/gists", { files: { "hoppscotch-collections.json": { - content: this.getJSONCollection(), + content: this.collectionJson, }, }, },