From 55645c2cd5a8dffa3a9db63c935ef55ce7baf0e2 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Mon, 13 Nov 2023 16:04:23 +0100 Subject: [PATCH] Update stylesheet-tree.repository.ts --- .../stylesheets/tree/stylesheet-tree.repository.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/tree/stylesheet-tree.repository.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/tree/stylesheet-tree.repository.ts index b38b17af75..a1448d71d1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/tree/stylesheet-tree.repository.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/tree/stylesheet-tree.repository.ts @@ -36,7 +36,6 @@ export class UmbStylesheetTreeRepository } async requestRootTreeItems() { - console.log('stylesheet root'); await this.#init; const { data, error } = await this.#treeDataSource.getRootItems(); @@ -50,10 +49,6 @@ export class UmbStylesheetTreeRepository async requestTreeItemsOf(path: string | null) { if (path === undefined) throw new Error('Cannot request tree item with missing path'); - if (path === null || path === '/' || path === '') { - return this.requestRootTreeItems(); - } - await this.#init; const { data, error } = await this.#treeDataSource.getChildrenOf(path);