Update DrawerControl.tsx

This commit is contained in:
nguyentrungthat 2025-12-17 16:48:19 +07:00
parent 7c7778a0e1
commit 4b130df801
1 changed files with 6 additions and 2 deletions

View File

@ -482,7 +482,9 @@ export const DrawerAPCControl: React.FC<DrawerProps> = ({
}}
>
{findLineByOutlet(outlet)
? "Line " + findLineByOutlet(outlet)?.lineNumber
? "Line " +
(findLineByOutlet(outlet)?.lineNumber ||
findLineByOutlet(outlet)?.line_number)
: outlet.name}
</Text>
</Card>
@ -713,7 +715,9 @@ export const DrawerAPCControl: React.FC<DrawerProps> = ({
}}
>
{findLineByOutlet(outlet)
? "Line " + findLineByOutlet(outlet)?.lineNumber
? "Line " +
(findLineByOutlet(outlet)?.lineNumber ||
findLineByOutlet(outlet)?.line_number)
: outlet.name}
</Text>
</Card>