Przeglądaj źródła

Fix incorrect null check

master
Fen Dweller 5 lat temu
rodzic
commit
7453c101c0
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      src/components/Combat.vue

+ 1
- 1
src/components/Combat.vue Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz