fix(extra) : show text colors and catalog items
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
"use server";
|
||||
|
||||
import { updateTag } from "next/cache";
|
||||
import * as z from "zod";
|
||||
|
||||
import type { AutosaveResponse } from "@/lib/editor/autosave";
|
||||
import { pageCacheTag } from "@/lib/cache/tags";
|
||||
import {
|
||||
createNamedRevision,
|
||||
saveDataSourceVersion,
|
||||
@@ -263,7 +265,9 @@ export async function saveTeamSection(guideId: string, input: unknown) {
|
||||
|
||||
export async function saveExtraSectionList(guideId: string, input: unknown) {
|
||||
await requireAdmin();
|
||||
return runGuideAction(() => saveExtraSections(guideId, input));
|
||||
const result = await runGuideAction(() => saveExtraSections(guideId, input));
|
||||
if (result.status === "saved") updateTag(pageCacheTag(guideId));
|
||||
return result;
|
||||
}
|
||||
|
||||
export async function moveGuideToTrash(guideId: string) {
|
||||
|
||||
Reference in New Issue
Block a user