Fix check for number of services
This commit is contained in:
parent
d341103aa5
commit
665de609d0
@ -25,7 +25,7 @@ async function get(headcode) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function parse(data) {
|
async function parse(data) {
|
||||||
if (data.length <= 1) {
|
if (data.length >= 1) {
|
||||||
document.getElementById('train_options').style = 'display:none;'
|
document.getElementById('train_options').style = 'display:none;'
|
||||||
displayOne(data[0])
|
displayOne(data[0])
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user