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: add async nature

jamesgeorge0073639ed8f70e7
diff --git a/pages/graphql.vue b/pages/graphql.vue
index 8663ca1fe..bd1f6ce0a 100644
--- a/pages/graphql.vue
+++ b/pages/graphql.vue
@@ -140,7 +140,7 @@ export default {
};
},
methods: {
- getSchema() {
+ async getSchema() {
const startTime = Date.now();
this.schemaString = "Loading...";
@@ -223,7 +223,7 @@ export default {
icon: "error"
});
console.log("Error", error);
- });
+ }
}
}
};