use prop observable
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user