Skip to content

Commit

Permalink
small fix regarding relative and absolute buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoertl committed Sep 12, 2024
1 parent 7b2c598 commit 7450bf0
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ const loading = computed(() => {
return regionalFrequenciesLoading.value.reduce((a, b) => a || b, false);
});
const mode: Ref<"relative" | "absolute"> = ref("relative");
watch(mode, (value?: string) => {
if (!value) mode.value = "relative";
});
// sadly this is needed to redraw the combined chart. also kills the data that is from a removed query
watch(queries.value, () => {
// console.log("queries chagened", queries.value);
Expand All @@ -82,7 +88,6 @@ watch(queries.value, () => {
);
});
const mode = ref("relative");
const expand = ref(false);
</script>

Expand Down

0 comments on commit 7450bf0

Please sign in to comment.