add asObservable

This commit is contained in:
JesmoDev
2024-03-14 09:54:38 +01:00
committed by Jacob Overgaard
parent 25737909cb
commit dcce7ec7e1

View File

@@ -129,11 +129,11 @@ export class UmbContentTypePropertyStructureManager<T extends UmbContentTypeMode
if (!unique) return {};
// Lets initiate the content type:
const { data } = await this.#contentTypeRepository.requestByUnique(unique);
const { data, asObservable } = await this.#contentTypeRepository.requestByUnique(unique);
if (!data) return {};
await this._observeContentType(data);
return { data };
return { data, asObservable };
}
private async _observeContentType(data: T) {