fix: Only clear desiredRoom if the room is found (#5398)
This commit is contained in:
parent
1388b030ee
commit
eb3e3d26a9
|
@ -187,10 +187,10 @@ function handleDesiredRoom () {
|
|||
if (rm) {
|
||||
state.currentFloor = fl.id
|
||||
state.currentRoom = rm.id
|
||||
state.desiredRoom = null
|
||||
break
|
||||
}
|
||||
}
|
||||
state.desiredRoom = null
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue