mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
1 parent
438bb09dda
commit
6706c682d5
1 file changed
+6
-1
@@ -169,7 +169,12 @@ const getHelpers = computed(() => {
|
||||
|
||||
const cronString = computed(() => {
|
||||
if (isCronValid(cron.value)) {
|
||||
return cronstrue.toString(cron.value, cronstrueConfig);
|
||||
try {
|
||||
return cronstrue.toString(cron.value, cronstrueConfig);
|
||||
}
|
||||
catch (e: any) {
|
||||
return e.toString();
|
||||
}
|
||||
}
|
||||
return ' ';
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user