nico 159fb3cec6 feat(apbdes): make image and file optional for edit page too
Changes:

Backend (updt.ts, index.ts):
- Update FormUpdateBody: imageId?: string | null
- Update Elysia schema: t.Optional(t.String())
- Handle null/undefined values when updating

UI (edit/page.tsx):
- Remove mandatory validation for imageId and fileId
- Update labels to show '(Opsional)'
- Simplify handleSubmit logic (no validation check)
- Keep existing file IDs if no new upload

User Flow:
Before: Edit required imageId and fileId to be present
After: Can update APBDes without files, preserve existing or set to null

Files changed:
- src/app/api/[[...slugs]]/_lib/landing_page/apbdes/updt.ts
- src/app/api/[[...slugs]]/_lib/landing_page/apbdes/index.ts
- src/app/admin/(dashboard)/landing-page/apbdes/[id]/edit/page.tsx

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-05 15:53:26 +08:00
2025-02-23 22:47:51 +08:00
2025-05-19 17:00:43 +08:00
2025-02-15 21:56:18 +08:00
2025-02-16 16:01:12 +08:00
2025-02-15 21:56:18 +08:00
2025-12-16 10:19:15 +08:00
2025-02-21 06:40:29 +08:00
2025-05-23 11:33:59 +08:00
2025-02-15 21:56:18 +08:00
2026-02-05 12:34:31 +08:00
2026-02-05 12:34:31 +08:00
2025-02-16 16:01:12 +08:00
2025-02-16 16:01:12 +08:00
2026-01-23 16:51:35 +08:00
2025-07-18 17:42:10 +08:00

Failed to Generate README

Description
No description provided
Readme 37 MiB
Languages
TypeScript 99.4%
HTML 0.4%