690327:1345 Fixing Refactor ADR-019 Naming convention uuid #16
CI / CD Pipeline / build (push) Failing after 5m11s
CI / CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
2026-03-27 13:45:29 +07:00
parent bb33e542c7
commit 47f12508f4
3 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -88,9 +88,9 @@ type DrawingFormData = z.infer<typeof formSchema>;
export function DrawingUploadForm() {
const router = useRouter();
// Project list
// Project list - ADR-019: useProjects returns array directly now
const { data: projectsData, isLoading: isLoadingProjects } = useProjects();
const projects = extractArrayData<{ id?: number; publicId?: string; projectName: string; projectCode: string }>(projectsData);
const projects = (projectsData ?? []) as { id?: number; publicId?: string; projectName: string; projectCode: string }[];
// Selected project for category fetching
const [selectedProjectId, setSelectedProjectId] = useState<number | string | undefined>(undefined);