From 46f6be93d03475bc49ab05d94bec0d1fea2730d6 Mon Sep 17 00:00:00 2001 From: Cody Olsen Date: Thu, 21 Nov 2024 04:16:38 +0100 Subject: [PATCH] Update SanityLive.tsx --- next-canary/src/app/SanityLive.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next-canary/src/app/SanityLive.tsx b/next-canary/src/app/SanityLive.tsx index f100a20..9d7c18b 100644 --- a/next-canary/src/app/SanityLive.tsx +++ b/next-canary/src/app/SanityLive.tsx @@ -16,7 +16,7 @@ export function SanityLive() { if (event.type === 'welcome') { console.info('Sanity is live with automatic invalidation of published content') } else if (event.type === 'message') { - expireTags(event.tags).then(() => router.refresh()) + expireTags(event.tags) } else if (event.type === 'restart') { router.refresh() }