Fix: bypass missing favourites in custom theme loader
This commit is contained in:
parent
1cd2d031ba
commit
6f59e46bef
1 changed files with 6 additions and 7 deletions
|
@ -172,13 +172,12 @@ class AddDefaultLayers extends DesugaringStep<LayoutConfigJson> {
|
|||
for (const layerName of Constants.added_by_default) {
|
||||
const v = state.sharedLayers.get(layerName)
|
||||
if (v === undefined) {
|
||||
context.err(
|
||||
"Default layer " +
|
||||
layerName +
|
||||
" not found. " +
|
||||
state.sharedLayers.size +
|
||||
" layers are available"
|
||||
)
|
||||
const msg = `Default layer ${layerName} not found. ${state.sharedLayers.size} layers are available`
|
||||
if (layerName === "favourite") {
|
||||
context.warn(msg)
|
||||
continue
|
||||
}
|
||||
context.err(msg)
|
||||
continue
|
||||
}
|
||||
if (alreadyLoaded.has(v.id)) {
|
||||
|
|
Loading…
Reference in a new issue