chore: Add zod/type deps and tighten TimeTracker types

This commit is contained in:
Gregor Vostrak
2026-03-24 17:41:26 +01:00
parent d07294ae7c
commit 797fddf638
2 changed files with 6 additions and 3 deletions

View File

@@ -74,10 +74,10 @@ const props = withDefaults(
}
);
const filteredResults = ref([] as ClientsWithProjectsWithTasks);
const filteredResults = ref<ClientsWithProjectsWithTasks>([]);
// computed filterProjects that flattens the first layer of filteredResults and combines all the projects
const filteredProjects = computed(() => {
const filteredProjects = computed<ProjectWithTasks[]>(() => {
return filteredResults.value.map((client) => client.projects).flat();
});