260220:1143 20260220 TASK-BEFE-001 Fix Drawing Master Data Pages
All checks were successful
Build and Deploy / deploy (push) Successful in 4m50s

This commit is contained in:
admin
2026-02-20 11:43:23 +07:00
parent d455598dc2
commit 21b48f7d32
3 changed files with 74 additions and 59 deletions

View File

@@ -232,10 +232,10 @@ function ManageMappings({ projectId }: { projectId: number }) {
<SelectValue placeholder="Select Sub-Category to add..." />
</SelectTrigger>
<SelectContent>
{subCategories
{(subCategories || [])
.filter(
(s: ContractSubCategory) =>
!mappings.find((m: { subCategory: { id: number } }) => m.subCategory.id === s.id)
!(mappings || []).find((m: { subCategory: { id: number } }) => m.subCategory?.id === s.id)
)
.map((s: ContractSubCategory) => (
<SelectItem key={s.id} value={String(s.id)}>