fix Not all code paths return a value

This commit is contained in:
Niels Lyngsø
2023-02-20 13:31:26 +01:00
parent 896ae3e93a
commit e364232b9c

View File

@@ -160,11 +160,7 @@ export class UmbDocumentWorkspaceContext
return this.#documentTypes.getObservablePart((docTypes) => {
return (
docTypes.find((docType) => {
return docType.properties?.find((property) => {
if (property.containerKey === containerKey) {
return true;
}
});
return docType.properties?.find((property) => property.containerKey === containerKey);
}) !== undefined
);
});