fix: fix status page set monitor list in create action not work problem
This commit is contained in:
parent
551f86b8e3
commit
e24d82224c
@ -28,7 +28,6 @@ export const MonitorStatusPageEditForm: React.FC<MonitorStatusPageEditFormProps>
|
||||
layout="vertical"
|
||||
initialValues={props.initialValues}
|
||||
onFinish={props.onFinish}
|
||||
onValuesChange={console.log}
|
||||
>
|
||||
<Form.Item
|
||||
label="Title"
|
||||
|
@ -578,7 +578,7 @@ export const monitorRouter = router({
|
||||
)
|
||||
.output(MonitorStatusPageModelSchema)
|
||||
.mutation(async ({ input }) => {
|
||||
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,
|
||||
},
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user