We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c360254 commit 6eafdf4Copy full SHA for 6eafdf4
src/components/misc widgets/CtlSlider.vue
@@ -25,7 +25,15 @@ const qcStore = useQCStore()
25
26
const genePage = PAGE_NAMES.GENE
27
28
-const inputValue = ref(controlSet.defaultValue)
+const getStoreValue = () => {
29
+ if (controlSet.topKey === 'filter') {
30
+ return appStore[appStore.currentPageName]?.filters?.[controlSet.storeKey]
31
+ }
32
+ return appStore[appStore.currentPageName]?.[controlSet.storeKey]
33
+}
34
+
35
+const storeValue = getStoreValue()
36
+const inputValue = ref(storeValue ?? controlSet.defaultValue)
37
const controlLabel = ref(`${controlSet.title} ${inputValue.value}`)
38
39
const enabled = computed(() => {
0 commit comments