fix(front): fix getting result from interactable object in InteractView
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
cfc984345e
commit
31b2d065a9
@ -68,7 +68,13 @@ const { onResult, onError, loading } = useQuery<{
|
||||
})
|
||||
);
|
||||
|
||||
onResult(async ({ data: { interact } }) => {
|
||||
onResult(async (result) => {
|
||||
if (result.loading) return;
|
||||
if (!result.data) {
|
||||
errors.push(t("This URL is not supported"));
|
||||
return;
|
||||
}
|
||||
const interact = result.data.interact;
|
||||
switch (interact.__typename) {
|
||||
case "Group":
|
||||
await router.replace({
|
||||
|
Loading…
Reference in New Issue
Block a user