From eeaee0f074747d807265899e976847d0eb97d2a8 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Thu, 28 Apr 2022 00:26:19 +0200 Subject: [PATCH] Add sharedLayers first to 'allPublicLayers' as they are the canonical version --- Customizations/AllKnownLayouts.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Customizations/AllKnownLayouts.ts b/Customizations/AllKnownLayouts.ts index 47fbe45eed..7da19ba75b 100644 --- a/Customizations/AllKnownLayouts.ts +++ b/Customizations/AllKnownLayouts.ts @@ -20,6 +20,11 @@ export class AllKnownLayouts { public static AllPublicLayers() { const allLayers: LayerConfig[] = [] const seendIds = new Set() + AllKnownLayouts.sharedLayers.forEach((layer, key) => { + seendIds.add(key) + allLayers.push(layer) + }) + const publicLayouts = AllKnownLayouts.layoutsList.filter(l => !l.hideFromOverview) for (const layout of publicLayouts) { if (layout.hideFromOverview) { @@ -34,6 +39,8 @@ export class AllKnownLayouts { } } + + return allLayers }