690320:2126 UUID agian by Claude Sonnet #02
Build and Deploy / deploy (push) Failing after 4m27s
Build and Deploy / deploy (push) Failing after 4m27s
This commit is contained in:
@@ -92,11 +92,7 @@ export default function UsersPage() {
|
||||
{
|
||||
id: "organization",
|
||||
header: "Organization",
|
||||
cell: ({ row }) => {
|
||||
const orgId = row.original.primaryOrganizationId;
|
||||
const org = (organizations as Organization[]).find((o) => (o.id ?? o.uuid) === orgId?.toString() || o.uuid === orgId?.toString());
|
||||
return org ? org.organizationCode : "-";
|
||||
},
|
||||
cell: ({ row }) => row.original.organization?.organizationCode ?? "-",
|
||||
},
|
||||
{
|
||||
id: "roles",
|
||||
|
||||
@@ -50,7 +50,8 @@ import { SearchContractDto, CreateContractDto, UpdateContractDto } from "@/types
|
||||
import { AxiosError } from "axios";
|
||||
|
||||
interface Project {
|
||||
id: string; // ADR-019: uuid exposed as 'id'
|
||||
uuid: string;
|
||||
id?: number;
|
||||
projectCode: string;
|
||||
projectName: string;
|
||||
}
|
||||
@@ -82,14 +83,14 @@ const contractSchema = z.object({
|
||||
type ContractFormData = z.infer<typeof contractSchema>;
|
||||
|
||||
const useContracts = (params?: SearchContractDto) => {
|
||||
return useQuery({
|
||||
return useQuery<Contract[]>({
|
||||
queryKey: ['contracts', params],
|
||||
queryFn: () => contractService.getAll(params),
|
||||
});
|
||||
};
|
||||
|
||||
const useProjectsList = () => {
|
||||
return useQuery({
|
||||
return useQuery<Project[]>({
|
||||
queryKey: ['projects-list'],
|
||||
queryFn: () => projectService.getAll(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user