From 465ddb51b90f03c5837b23a2670ad4f70b59d295 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 3 Dec 2023 23:51:02 +0100 Subject: [PATCH] fix: fix issue with hidden LED groups (#1669) --- src/components/inputs/MiscellaneousLight.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/components/inputs/MiscellaneousLight.vue b/src/components/inputs/MiscellaneousLight.vue index 2ccd2dbde..57eee47b1 100644 --- a/src/components/inputs/MiscellaneousLight.vue +++ b/src/components/inputs/MiscellaneousLight.vue @@ -10,18 +10,16 @@ {{ mdiLightbulbOutline }} {{ name }} - + + @click="boolDialog = true" /> - + + @click="usePreset(preset)" /> {{ preset.name }} - + @@ -157,6 +155,7 @@ interface ColorData { @Component({ components: { ColorPicker, + MiscellaneousLight: () => import('@/components/inputs/MiscellaneousLight.vue'), }, }) export default class MiscellaneousLight extends Mixins(BaseMixin) { @@ -344,6 +343,8 @@ export default class MiscellaneousLight extends Mixins(BaseMixin) { } get groups() { + if (!this.root) return [] + return ( this.$store.getters['gui/miscellaneous/getEntryLightgroups']({ type: this.object.type,