fix: do not show separator in contextmenu when nothing before

This commit is contained in:
Yohan Boniface 2024-10-05 09:09:30 +02:00
parent c0eb936499
commit c90618a248

View file

@ -1726,8 +1726,10 @@ U.Map = L.Map.extend({
}) })
} }
} }
if (items.length) {
items.push('-')
}
items.push( items.push(
'-',
{ {
label: L._('Open browser'), label: L._('Open browser'),
action: () => this.openBrowser('layers'), action: () => this.openBrowser('layers'),