Fix issue with /Weight redirecting to /Energy which does not exist

This commit is contained in:
2024-08-10 20:56:22 +02:00
parent e0eb7f9748
commit abb25c1357
2 changed files with 3 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
const routes = {
'/': Energy,
'/Energy': Energy,
'/Energy/daily': Daily,
'/Energy/weekly': Weekly,
'/Energy/monthly': Monthly,

View File

@@ -1,5 +1,7 @@
<script lang="ts">
import FoodTable from "$lib/components/Energy/FoodTable.svelte";
import * as srouter from "svelte-spa-router";
import { location } from "svelte-spa-router";
import { foodStore } from "$lib/store/Energy/foodStore";
// Fuck this hacky shit