mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-12 10:12:17 +01:00
chore: Add zod/type deps and tighten TimeTracker types
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user