Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:zap: Fix potential performance and quality issues

Alicia Sykesfb86f55bf2e3
diff --git a/src/components/MinimalView/MinimalSearch.vue b/src/components/MinimalView/MinimalSearch.vue
index d0df763e..6e79e271 100644
--- a/src/components/MinimalView/MinimalSearch.vue
+++ b/src/components/MinimalView/MinimalSearch.vue
@@ -54,6 +54,9 @@ export default {
}
});
},
+ beforeDestroy() {
+ window.removeEventListener();
+ },
methods: {
/* Emmits users's search term up to parent */
userIsTypingSomething() {
diff --git a/src/views/Minimal.vue b/src/views/Minimal.vue
index 33769010..c0602b04 100644
--- a/src/views/Minimal.vue
+++ b/src/views/Minimal.vue
@@ -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: {