mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
fix select group issue
This commit is contained in:
parent
0e9732e6ce
commit
25de9edb13
1 changed files with 2 additions and 2 deletions
|
|
@ -52,8 +52,8 @@ function selectStyleElement() {
|
|||
// active group element
|
||||
const group = styleGroupSelect.value;
|
||||
if (["routes", "labels", "coastline", "lakes", "anchors", "burgIcons", "borders"].includes(sel)) {
|
||||
const gEl = el.select("#" + group);
|
||||
el = gEl.size() ? gEl : el.select("g");
|
||||
const gEl = group && el.select("#" + group);
|
||||
el = group && gEl.size() ? gEl : el.select("g");
|
||||
}
|
||||
|
||||
// opacity
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue