diff --git a/src/pages/crontab/index.tsx b/src/pages/crontab/index.tsx index 3ec94523..ae213976 100644 --- a/src/pages/crontab/index.tsx +++ b/src/pages/crontab/index.tsx @@ -85,28 +85,32 @@ const Crontab = ({ headerStyle, isPhone, theme }: any) => { goToScriptManager(record); }} > - - {record.labels?.map((label: string) => ( - { - e.stopPropagation(); - setSearchValue(`label:${label}`); - }} - > - {label} - - ))} - - } - > - {record.name || '-'} - + {record.labels && record.labels.length > 0 ? ( + + {record.labels?.map((label: string) => ( + { + e.stopPropagation(); + setSearchValue(`label:${label}`); + }} + > + {label} + + ))} + + } + > + {record.name || '-'} + + ) : ( + record.name || '-' + )} {record.isPinned ? (