Fix potential performance and quality issues

This commit is contained in:
Alicia Sykes 2021-08-14 19:29:03 +01:00
parent aea8a1d0a5
commit fb86f55bf2
2 changed files with 4 additions and 1 deletions

View File

@ -54,6 +54,9 @@ export default {
}
});
},
beforeDestroy() {
window.removeEventListener();
},
methods: {
/* Emmits users's search term up to parent */
userIsTypingSomething() {

View File

@ -81,7 +81,7 @@ export default {
watch: {
/* When the theme changes, then call the update method */
searchValue() {
this.tabbedView = !this.searchValue.length > 0;
this.tabbedView = !(this.searchValue.length > 0);
},
},
methods: {