Преглед на файлове

Fix incorrect null check

master
Fen Dweller преди 5 години
родител
ревизия
7453c101c0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      src/components/Combat.vue

+ 1
- 1
src/components/Combat.vue Целия файл

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


Loading…
Отказ
Запис