add asObservable
This commit is contained in:
committed by
Jacob Overgaard
parent
25737909cb
commit
dcce7ec7e1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user