Fixed bugs
This commit is contained in:
parent
8a9d354503
commit
8b80ec4ca3
|
@ -206,7 +206,7 @@ export default async function Revalidate(
|
||||||
try {
|
try {
|
||||||
Promise.all(
|
Promise.all(
|
||||||
paths.map(async (path) => {
|
paths.map(async (path) => {
|
||||||
await res.unstable_revalidate(path);
|
await res.revalidate(path);
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
return res.json({ message: "Success!", revalidated: true });
|
return res.json({ message: "Success!", revalidated: true });
|
||||||
|
|
|
@ -21,7 +21,6 @@ import { TextInput } from "components/Inputs/TextInput";
|
||||||
import { Button } from "components/Inputs/Button";
|
import { Button } from "components/Inputs/Button";
|
||||||
import { PreviewCardCTAs } from "components/Library/PreviewCardCTAs";
|
import { PreviewCardCTAs } from "components/Library/PreviewCardCTAs";
|
||||||
import { useAppLayout } from "contexts/AppLayoutContext";
|
import { useAppLayout } from "contexts/AppLayoutContext";
|
||||||
import { ToolTip } from "components/ToolTip";
|
|
||||||
import {
|
import {
|
||||||
filterItems,
|
filterItems,
|
||||||
getGroups,
|
getGroups,
|
||||||
|
|
Loading…
Reference in New Issue