From f861737b8590e4d60d8d5c5f1230df9d8223754e Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 31 Oct 2021 23:04:26 +0100 Subject: [PATCH] web/admin: fix formatting Signed-off-by: Jens Langhammer --- .../providers/proxy/ProxyProviderForm.ts | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/web/src/pages/providers/proxy/ProxyProviderForm.ts b/web/src/pages/providers/proxy/ProxyProviderForm.ts index c51e99c5a..3cc5bfc77 100644 --- a/web/src/pages/providers/proxy/ProxyProviderForm.ts +++ b/web/src/pages/providers/proxy/ProxyProviderForm.ts @@ -356,19 +356,25 @@ export class ProxyProviderFormPage extends ModelForm { ordering: "scope_name", }) .then((scopes) => { - return scopes.results.filter((scope) => { - return !scope.managed?.startsWith("goauthentik.io/providers"); - }).map((scope) => { - const selected = (this.instance?.propertyMappings || []).some((su) => { - return su == scope.pk; + return scopes.results + .filter((scope) => { + return !scope.managed?.startsWith( + "goauthentik.io/providers", + ); + }) + .map((scope) => { + const selected = ( + this.instance?.propertyMappings || [] + ).some((su) => { + return su == scope.pk; + }); + return html``; }); - return html``; - }); }), html``, )}