web/admin: fix formatting

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-10-31 23:04:26 +01:00
parent 6036d88392
commit f861737b85
1 changed files with 18 additions and 12 deletions

View File

@ -356,10 +356,16 @@ export class ProxyProviderFormPage extends ModelForm<ProxyProvider, number> {
ordering: "scope_name", ordering: "scope_name",
}) })
.then((scopes) => { .then((scopes) => {
return scopes.results.filter((scope) => { return scopes.results
return !scope.managed?.startsWith("goauthentik.io/providers"); .filter((scope) => {
}).map((scope) => { return !scope.managed?.startsWith(
const selected = (this.instance?.propertyMappings || []).some((su) => { "goauthentik.io/providers",
);
})
.map((scope) => {
const selected = (
this.instance?.propertyMappings || []
).some((su) => {
return su == scope.pk; return su == scope.pk;
}); });
return html`<option return html`<option