Skip to content

Commit 140571c

Browse files
committed
remove out dated comment
1 parent e06b5f4 commit 140571c

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/packages/block/block/workspace/manifests.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ export const manifests: Array<ManifestTypes> = [
7575
},
7676
{
7777
alias: 'Umb.Condition.BlockWorkspaceHasSettings',
78-
},
79-
{
80-
alias: 'Umb.Condition.Switch',
81-
frequency: '2000'
8278
}
8379
],
8480
} as any,

src/packages/core/section/section-default.element.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,11 @@ export class UmbSectionDefaultElement extends UmbLitElement implements UmbSectio
8686
const api = await createExtensionApi(this, extensionController.manifest);
8787

8888
return {
89-
path:
89+
path: (
9090
api?.getPath?.() ||
9191
extensionController.manifest.meta?.path ||
92-
aliasToPath(extensionController.manifest.alias),
93-
// be aware that this is kind of a hack to pass the manifest element to the router. But as the two resolve components
94-
// in a similar way. I currently find it more safe to let the router do the component resolving instead
95-
// of replicating it as a custom resolver here.
92+
aliasToPath(extensionController.manifest.alias)
93+
),
9694
component: () => createExtensionElement(extensionController.manifest),
9795
setup: (element: PageComponent, info: IRoutingInfo) => {
9896
api?.setup?.(element, info);

0 commit comments

Comments
 (0)