Content Type Designer: Always register root route to support drag-and-drop into empty Generic tab. (#20809)

Always register root route to enable drag-drop on empty Generic tab.
This commit is contained in:
Engiber Lozada
2025-11-13 09:19:33 +01:00
committed by GitHub
parent 139b528bda
commit d4d4b8a50a

View File

@@ -207,7 +207,6 @@ export class UmbContentTypeDesignEditorElement extends UmbLitElement implements
});
}
if (this._hasRootGroups || this._tabs.length === 0) {
routes.push({
path: 'root',
component: () => import('./content-type-design-editor-tab.element.js'),
@@ -216,6 +215,8 @@ export class UmbContentTypeDesignEditorElement extends UmbLitElement implements
this.#currentTabComponent.containerId = null;
},
});
if (this._hasRootGroups || this._tabs.length === 0) {
routes.push({
path: '',
pathMatch: 'full',