use prop observable

This commit is contained in:
Niels Lyngsø
2024-02-29 10:55:49 +01:00
parent 4a6bfd2816
commit 409591e91a
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ export class UmbDocumentWorkspaceViewCollectionElement extends UmbLitElement imp
this._documentUnique = unique;
});
this.observe(
workspaceContext.structure.ownerContentType(),
workspaceContext.structure.ownerContentType,
async (documentType) => {
if (!documentType || !documentType.collection) return;

View File

@@ -31,7 +31,7 @@ export class UmbMediaWorkspaceViewCollectionElement extends UmbLitElement implem
this._mediaUnique = unique;
});
this.observe(
workspaceContext.structure.ownerContentType(),
workspaceContext.structure.ownerContentType,
async (mediaType) => {
if (!mediaType || !mediaType.collection) return;