Sinkronisasi API & UI Admin & User, Menu Landing Page, Submenu Potensi
This commit is contained in:
@@ -6,7 +6,7 @@ import { proxy } from "valtio";
|
||||
import { z } from "zod";
|
||||
|
||||
const templateForm = z.object({
|
||||
name: z.string().min(1).max(50),
|
||||
name: z.string().min(1).max(5000),
|
||||
deskripsi: z.string().min(1).max(5000),
|
||||
kategoriId: z.string().min(1).max(50),
|
||||
imageId: z.string().min(1).max(50),
|
||||
|
||||
@@ -84,7 +84,7 @@ function EditPotensi() {
|
||||
|
||||
await potensiState.edit.update();
|
||||
toast.success("Potensi berhasil diperbarui!");
|
||||
router.push("/admin/desa/potensi");
|
||||
router.push("/admin/desa/potensi/list-potensi");
|
||||
} catch (error) {
|
||||
console.error("Error updating potensi:", error);
|
||||
toast.error("Terjadi kesalahan saat memperbarui potensi");
|
||||
|
||||
Reference in New Issue
Block a user