From e24d82224ca2bbce8e72caaa07677dd7a2b947bc Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sat, 13 Jan 2024 01:21:09 +0800 Subject: [PATCH] fix: fix status page set monitor list in create action not work problem --- src/client/components/monitor/StatusPage/EditForm.tsx | 1 - src/server/trpc/routers/monitor.ts | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/components/monitor/StatusPage/EditForm.tsx b/src/client/components/monitor/StatusPage/EditForm.tsx index 04d5643..f5dcfb7 100644 --- a/src/client/components/monitor/StatusPage/EditForm.tsx +++ b/src/client/components/monitor/StatusPage/EditForm.tsx @@ -28,7 +28,6 @@ export const MonitorStatusPageEditForm: React.FC layout="vertical" initialValues={props.initialValues} onFinish={props.onFinish} - onValuesChange={console.log} > { - const { workspaceId, slug, title } = input; + const { workspaceId, slug, title, description, monitorList } = input; const existSlugCount = await prisma.monitorStatusPage.count({ where: { @@ -595,6 +595,8 @@ export const monitorRouter = router({ workspaceId, slug, title, + description, + monitorList, }, });