fix: show the GraphQL error if it exists in GroupEvents
For example, the error can be "Group not found".
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<div class="container mx-auto" v-if="groupError">
|
||||||
|
<p>{{ groupError.message }}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="container mx-auto" v-if="group">
|
<div class="container mx-auto" v-if="group">
|
||||||
<breadcrumbs-nav
|
<breadcrumbs-nav
|
||||||
:links="[
|
:links="[
|
||||||
@@ -170,6 +174,7 @@ watch(
|
|||||||
const {
|
const {
|
||||||
result: groupResult,
|
result: groupResult,
|
||||||
loading: groupLoading,
|
loading: groupLoading,
|
||||||
|
error: groupError,
|
||||||
refetch: refetch,
|
refetch: refetch,
|
||||||
} = useQuery<
|
} = useQuery<
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user