fixed check for undefined
This commit is contained in:
parent
1fdd6ae7e4
commit
4083042f49
1 changed files with 2 additions and 3 deletions
|
@ -282,13 +282,12 @@
|
||||||
// before setDraggedTask.
|
// before setDraggedTask.
|
||||||
// Once taskDragged is not empty, we run the actual code and cancel the timeout loop.
|
// Once taskDragged is not empty, we run the actual code and cancel the timeout loop.
|
||||||
// This is pretty ugly...
|
// This is pretty ugly...
|
||||||
if(this.taskDragged !== null && this.taskDragged !== undefined) {
|
if(this.taskDragged === null || typeof this.taskDragged === 'undefined') {
|
||||||
clearInterval(tt)
|
|
||||||
} else {
|
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
console.log('fckin js')
|
console.log('fckin js')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
clearInterval(tt)
|
||||||
|
|
||||||
if(this.isTaskEdit) {
|
if(this.isTaskEdit) {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue