From 962d1abffa72d55ba4c71bebe06f10f08946387d Mon Sep 17 00:00:00 2001 From: r-freeman Date: Thu, 13 Apr 2023 17:36:52 +0100 Subject: [PATCH] Updated views component --- components/ui/Views.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ui/Views.tsx b/components/ui/Views.tsx index d263af9..ff9af28 100644 --- a/components/ui/Views.tsx +++ b/components/ui/Views.tsx @@ -49,7 +49,7 @@ export function Views({as: Component = 'span', slug, className, shouldUpdateView ) } - registerView() + registerView().then(() => mutate(`/api/views/${slug}`)) } }, [])