Fixes service map button not showing

This commit is contained in:
MatteoBiscosi 2021-08-11 10:22:17 +02:00
parent aad505f87a
commit 09cd16d090
2 changed files with 3 additions and 3 deletions

View file

@ -82,8 +82,8 @@ function behavior_utils.mapsAvailable()
local periodic_map_available = false
if areMapsEnabled() then
local service_map = interface.serviceMap(nil, 0, 0, false, 0, '') or {}
local periodicity_map = interface.periodicityMap(nil, 0, 0, false, 0, '') or {}
local service_map = interface.serviceMap(nil, nil, nil, nil, nil, nil) or {}
local periodicity_map = interface.periodicityMap(nil, nil, nil, nil, nil, nil) or {}
if service_map and (table.len(service_map) > 0) then
service_map_available = true