Skip to content

Commit d1514e5

Browse files
[ui]: fix the undefined check resolving as true for scheduleTask tab (#4256)
1 parent 1819854 commit d1514e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

desktop/core/src/desktop/js/apps/jobBrowser/knockout/JobBrowserViewModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default class JobBrowserViewModel {
7676
!this.isMini() && schedulerInterfaceCondition();
7777

7878
const schedulerBeatInterfaceCondition = () =>
79-
this.appConfig()?.scheduler?.interpreter_names.indexOf('celery-beat') !== -1;
79+
this.appConfig()?.scheduler?.interpreter_names.includes('celery-beat');
8080

8181
const livyInterfaceCondition = () =>
8282
!this.isMini() &&

0 commit comments

Comments
 (0)