Update stylesheet-tree.repository.ts

This commit is contained in:
Mads Rasmussen
2023-11-13 16:04:23 +01:00
parent 520bed5d66
commit 55645c2cd5

View File

@@ -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);