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
@@ -31,10 +31,11 @@ export default function EditTemplatePage() {
const contractId = getContractPublicId(firstContract);
const { data: disciplines = [] } = useDisciplines(contractId);
const selectedProjectName =
(projects as Array<{ id?: number; publicId?: string; projectCode: 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; projectCode: string; projectName: string }>).find((p) =>
String(p.publicId ?? p.id) === String(projectId))
?.projectName || 'LCBP3'
: 'LCBP3';
useEffect(() => {
const fetchTemplate = async () => {