mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +02:00
fix: do not show separator in contextmenu when nothing before
This commit is contained in:
parent
c0eb936499
commit
c90618a248
1 changed files with 3 additions and 1 deletions
|
@ -1726,8 +1726,10 @@ U.Map = L.Map.extend({
|
|||
})
|
||||
}
|
||||
}
|
||||
if (items.length) {
|
||||
items.push('-')
|
||||
}
|
||||
items.push(
|
||||
'-',
|
||||
{
|
||||
label: L._('Open browser'),
|
||||
action: () => this.openBrowser('layers'),
|
||||
|
|
Loading…
Reference in a new issue