Accept 5-digit dienst numbers and normalize lookup type
This commit is contained in:
parent
bd8b5a5a66
commit
c97d662856
3 changed files with 4 additions and 3 deletions
|
|
@ -33,7 +33,7 @@ function loadDiensten() {
|
|||
|
||||
function findDienst(dienstnummer) {
|
||||
const diensten = loadDiensten()
|
||||
return diensten.find(d => d.dienstnummer === dienstnummer) || null
|
||||
return diensten.find(d => String(d.dienstnummer) === dienstnummer) || null
|
||||
}
|
||||
|
||||
function getPngFilePaths(dienst) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue