Skip to content

Commit

Permalink
Force first update of the variable on GenericIndicator
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl authored and patrickelectric committed Sep 12, 2023
1 parent cf391fe commit 017f791
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/mini-widgets/GenericIndicator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<script setup lang="ts">
import * as MdiExports from '@mdi/js/mdi'
import { toReactive } from '@vueuse/core'
import { computed, onBeforeMount, ref, toRefs, watch } from 'vue'
import { computed, onBeforeMount, onMounted, ref, toRefs, watch } from 'vue'
import Dropdown from '@/components/Dropdown.vue'
import { round } from '@/libs/utils'
Expand Down Expand Up @@ -151,6 +151,7 @@ const updateVariableState = (): void => {
}
watch(store.genericVariables, updateVariableState)
watch(options, updateVariableState)
onMounted(() => updateVariableState())
let iconsNames: string[] = []
Expand Down

0 comments on commit 017f791

Please sign in to comment.