Skip to content

Commit

Permalink
Merge pull request #252 from Progress1/t_is_null
Browse files Browse the repository at this point in the history
Fix errors: t is null & semicolon
  • Loading branch information
Progress1 authored Mar 26, 2024
2 parents 35ec27f + 36fb820 commit 4e9f3fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/gui/src/store/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const getters = {
getProfileLanguage(state) {
let lng = state.language;
if (!lng) {
lng = navigator.language.split('-')[0];;
lng = navigator.language.split('-')[0];
}
if (!lng && typeof (process.env.VUE_APP_TARANIS_NG_LOCALE) !== "undefined") {
lng = process.env.VUE_APP_TARANIS_NG_LOCALE;
Expand Down
8 changes: 6 additions & 2 deletions src/gui/src/views/users/AssessView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,16 @@
created() {
document.addEventListener("keydown", this.keyAction, false);
const element = document.querySelector("card-item");
element.addEventListener('click', this.targetClick, false);
if (element !== null) {
element.addEventListener('click', this.targetClick, false);
}
},
beforeDestroy() {
document.removeEventListener("keydown", this.keyAction);
const element = document.querySelector("card-item");
element.removeEventListener('click');
if (element !== null) {
element.removeEventListener('click');
}
this.$root.$off('first-dialog');
this.$root.$off('clear-cards');
}
Expand Down

0 comments on commit 4e9f3fc

Please sign in to comment.