From 22eedebf14309027f62167e5f1304e2664852429 Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 24 Sep 2023 00:47:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=BB=E5=8A=A1=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=88=9B=E5=BB=BA=E8=A7=86=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/crontab/viewCreateModal.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/crontab/viewCreateModal.tsx b/src/pages/crontab/viewCreateModal.tsx index 2e00b88e..a26c8d39 100644 --- a/src/pages/crontab/viewCreateModal.tsx +++ b/src/pages/crontab/viewCreateModal.tsx @@ -112,10 +112,14 @@ const ViewCreateModal = ({ ); }, [view, visible]); - const OperationElement = ({ name }: { name: number }) => { + const OperationElement = ({ name, ...others }: { name: number }) => { const property = form.getFieldValue(['filters', name, 'property']); return ( - {OPERATIONS.filter((x) => STATUS_MAP[property as 'status' | 'sub_id'] ? x.type === 'select' : x, ).map((x) => (