Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

fix: broken create github gist for collections

liyasthomas43b0225fbaa6
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,
},
},
},