690526:1239 ADR-023-229 dynamic prompt #03
CI / CD Pipeline / build (push) Successful in 5m12s
CI / CD Pipeline / deploy (push) Successful in 6m42s

This commit is contained in:
2026-05-26 12:39:29 +07:00
parent 01de542d15
commit 960cd78b8a
8 changed files with 38 additions and 17 deletions
@@ -21,9 +21,10 @@ export default function NewTemplatePage() {
const contractId = getContractPublicId(firstContract);
const { data: disciplines = [] } = useDisciplines(contractId);
const selectedProjectName =
(projects as Array<{ id?: number; publicId?: string; projectName: string }>).find((p) =>
String(p.publicId ?? p.id) === String(projectId))?.projectName || 'LCBP3';
const selectedProjectName = Array.isArray(projects)
? (projects as Array<{ id?: number; publicId?: string; projectName: string }>).find((p) =>
String(p.publicId ?? p.id) === String(projectId))?.projectName || 'LCBP3'
: 'LCBP3';
const handleSave = async (data: Partial<NumberingTemplate>) => {
try {