forked from MapComplete/MapComplete
Themes: improve favourite panel
This commit is contained in:
parent
37cdf0f01a
commit
59090fdb39
14 changed files with 176 additions and 51 deletions
|
@ -15,7 +15,7 @@ export class AllKnownLayoutsLazy {
|
|||
constructor(includeFavouriteLayer = true) {
|
||||
for (const layoutConfigJson of known_themes["themes"]) {
|
||||
for (const layerId of Constants.added_by_default) {
|
||||
if (layerId === "favourite") {
|
||||
if (layerId === "favourite" && favourite.id) {
|
||||
if (includeFavouriteLayer) {
|
||||
layoutConfigJson.layers.push(favourite)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue