Skip to content

Commit

Permalink
fix: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
bolinocroustibat committed Dec 3, 2024
1 parent 56c30e2 commit b80b308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/sidebar/TileTwo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default defineComponent({
setup(props) {
const appStore = useAppStore();
const data = ref(monthNatData["P"]);
const data = ref(monthNatData["P" as keyof typeof monthNatData]);
const chartKey = ref(0);
const color = ref("#388E3C");
Expand All @@ -51,7 +51,7 @@ export default defineComponent({
});
watch(() => appStore.option, (newValue: string) => {
data.value = monthNatData[newValue];
data.value = monthNatData[newValue as keyof typeof monthNatData];
level.value = "National";
color.value = getColorsForNatureCulture(appStore.option)[3]
chartKey.value++;
Expand Down

0 comments on commit b80b308

Please sign in to comment.