Sfoglia il codice sorgente

[ui]: fix the undefined check resolving as true for scheduleTask tab (#4256)

Ram Prasad Agarwal 2 mesi fa
parent
commit
d1514e5105

+ 1 - 1
desktop/core/src/desktop/js/apps/jobBrowser/knockout/JobBrowserViewModel.js

@@ -76,7 +76,7 @@ export default class JobBrowserViewModel {
         !this.isMini() && schedulerInterfaceCondition();
 
       const schedulerBeatInterfaceCondition = () =>
-        this.appConfig()?.scheduler?.interpreter_names.indexOf('celery-beat') !== -1;
+        this.appConfig()?.scheduler?.interpreter_names.includes('celery-beat');
 
       const livyInterfaceCondition = () =>
         !this.isMini() &&