Commit 7a4fb319 authored by christianrhansen's avatar christianrhansen

cleaned-up touchMobileCell()

parent 4fb1fd1b
Pipeline #20299 passed with stage
in 1 minute and 22 seconds
......@@ -553,8 +553,7 @@
touchMobileCell (event, cell) {
if (cell) {
Object.keys(this.annotationUIStates).filter((k) => {
if (k === cell._uuid && this.annotationUIStates[k].editing) console.log(k, cell._uuid)
else this.annotationUIStates[k].editing = false
if (k !== cell._uuid && this.annotationUIStates[k].editing) this.annotationUIStates[k].editing = false
})
this.annotationUIStates[cell._uuid].editing = !this.annotationUIStates[cell._uuid].editing
this.updateEditingCells()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment