Fix for ECS Headcodes

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2024-02-03 21:33:31 +00:00
parent 3b03330ce1
commit e1ba881be4

View File

@ -98,7 +98,7 @@ async function fetchPisCode(
} }
// Check if no public stops - then it should use an ECS headcode // Check if no public stops - then it should use an ECS headcode
let pisData: OB_Pis_SimpleObject | null let pisData: OB_Pis_SimpleObject | null
if (tiplocList) { if (tiplocList.length) {
pisData = await findByTiplocArray(tiplocList); pisData = await findByTiplocArray(tiplocList);
} else { } else {
pisData = { pisData = {