don't add folder details to the tree store

This commit is contained in:
Mads Rasmussen
2023-04-21 12:06:18 +02:00
parent 9ab0a37077
commit dc9f0628e5

View File

@@ -282,14 +282,7 @@ export class UmbDataTypeRepository
async requestFolder(id: string) {
if (!id) throw new Error('Key is missing');
await this.#init;
const { data, error } = await this.#folderSource.get(id);
if (data) {
this.#treeStore?.appendItems([data]);
}
return { data, error };
return await this.#folderSource.get(id);
}
// Actions