From 368149b0ce96f748ef2181bbede713aaae50da8b Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Mon, 11 Sep 2023 14:06:45 +0200 Subject: [PATCH] format --- .../content-type-structure-manager.class.ts | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/content-type/content-type-structure-manager.class.ts b/src/Umbraco.Web.UI.Client/src/packages/core/content-type/content-type-structure-manager.class.ts index 9801557be4..9843325613 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/content-type/content-type-structure-manager.class.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/content-type/content-type-structure-manager.class.ts @@ -314,28 +314,24 @@ export class UmbContentTypePropertyStructureManager { for (const docType of docTypes) { const foundProp = docType.properties?.find((property) => property.id === propertyId); - if(foundProp) { + if (foundProp) { return foundProp; } } return undefined; }); } - async propertyStructureByAlias( - propertyAlias: string - ) { + async propertyStructureByAlias(propertyAlias: string) { await this.#init; return this.#documentTypes.asObservablePart((docTypes) => { for (const docType of docTypes) { const foundProp = docType.properties?.find((property) => property.alias === propertyAlias); - if(foundProp) { + if (foundProp) { return foundProp; } } @@ -347,7 +343,7 @@ export class UmbContentTypePropertyStructureManager property.id === propertyId); - if(foundProp) { + if (foundProp) { return foundProp; } } @@ -357,14 +353,13 @@ export class UmbContentTypePropertyStructureManager property.alias === propertyAlias); - if(foundProp) { + if (foundProp) { return foundProp; } } return undefined; } - /* rootDocumentTypeName() { return this.#documentTypes.asObservablePart((docTypes) => {