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) => (