fixed check for undefined

This commit is contained in:
konrad 2019-06-29 23:12:49 +02:00
parent 1fdd6ae7e4
commit 4083042f49
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -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