linfansen hace 1 año
padre
commit
ab6aac21d3
Se han modificado 1 ficheros con 0 adiciones y 3 borrados
  1. 0 3
      src/utils/index.js

+ 0 - 3
src/utils/index.js

@@ -365,9 +365,6 @@ export function transformToCron (startDate, endDate, dayOfWeek, executeTime) {
 }
 
 export function transformCron (cron) {
-  if (!cron || !cron[0]) {
-    return { dayOfWeek: '', executeTime: '' }
-  }
   const strArr = cron[0].split(' ')
   return {
     dayOfWeek: strArr[5],