From 8b80ec4ca38604d08b1c018c090a85b2f6c1bc5d Mon Sep 17 00:00:00 2001 From: DrMint Date: Sat, 2 Jul 2022 05:10:40 +0200 Subject: [PATCH] Fixed bugs --- src/pages/api/revalidate.ts | 2 +- src/pages/library/index.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/api/revalidate.ts b/src/pages/api/revalidate.ts index 1f0a0fc..269f9fe 100644 --- a/src/pages/api/revalidate.ts +++ b/src/pages/api/revalidate.ts @@ -206,7 +206,7 @@ export default async function Revalidate( try { Promise.all( paths.map(async (path) => { - await res.unstable_revalidate(path); + await res.revalidate(path); }) ); return res.json({ message: "Success!", revalidated: true }); diff --git a/src/pages/library/index.tsx b/src/pages/library/index.tsx index daff476..52e3adb 100644 --- a/src/pages/library/index.tsx +++ b/src/pages/library/index.tsx @@ -21,7 +21,6 @@ import { TextInput } from "components/Inputs/TextInput"; import { Button } from "components/Inputs/Button"; import { PreviewCardCTAs } from "components/Library/PreviewCardCTAs"; import { useAppLayout } from "contexts/AppLayoutContext"; -import { ToolTip } from "components/ToolTip"; import { filterItems, getGroups,