Explorar el Código

Fix incorrect null check

vintage
Fen Dweller hace 5 años
padre
commit
7453c101c0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/components/Combat.vue

+ 1
- 1
src/components/Combat.vue Ver fichero

@@ -161,7 +161,7 @@ export default class Combat extends Vue {
this.scrollParentTo(creature)
}
const target: HTMLElement|null = this.$el.querySelector("[data-active]")
if (creature !== null) {
if (target !== null) {
this.scrollParentTo(target)
}
})


Cargando…
Cancelar
Guardar