diff --git a/js/src/composition/apollo/tags.ts b/js/src/composition/apollo/tags.ts index 252cd1013..da9c06835 100644 --- a/js/src/composition/apollo/tags.ts +++ b/js/src/composition/apollo/tags.ts @@ -11,7 +11,12 @@ export function fetchTags(text: string): Promise { }) ); - onResult(({ data }) => resolve(data.tags)); + onResult((result) => { + if (result.loading) { + return; + } + return resolve(result.data.tags); + }); onError((error) => reject(error)); });