fix: display custom billable rate correctly on project detail page

This commit is contained in:
Gregor Vostrak
2026-01-27 20:11:35 +01:00
parent 672c243c91
commit 99400ca655
4 changed files with 94 additions and 28 deletions

View File

@@ -0,0 +1,22 @@
import { useQuery } from '@tanstack/vue-query';
import { api } from '@/packages/api/src';
import { computed } from 'vue';
export function useOrganizationQuery(organizationId: string) {
const query = useQuery({
queryKey: ['organization', organizationId],
queryFn: () =>
api.getOrganization({
params: {
organization: organizationId,
},
}),
});
const organization = computed(() => query.data.value?.data);
return {
...query,
organization,
};
}