From 4083042f49c34a9c5126757f2526db9ccde0c6b5 Mon Sep 17 00:00:00 2001 From: konrad Date: Sat, 29 Jun 2019 23:12:49 +0200 Subject: [PATCH] fixed check for undefined --- src/components/tasks/gantt-component.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/tasks/gantt-component.vue b/src/components/tasks/gantt-component.vue index 9279327f9..2cfedf825 100644 --- a/src/components/tasks/gantt-component.vue +++ b/src/components/tasks/gantt-component.vue @@ -282,13 +282,12 @@ // before setDraggedTask. // Once taskDragged is not empty, we run the actual code and cancel the timeout loop. // This is pretty ugly... - if(this.taskDragged !== null && this.taskDragged !== undefined) { - clearInterval(tt) - } else { + if(this.taskDragged === null || typeof this.taskDragged === 'undefined') { // eslint-disable-next-line console.log('fckin js') return } + clearInterval(tt) if(this.isTaskEdit) { return