Filter out disabled user storage providers (#19063)

This commit is contained in:
Erik Jan de Wit 2023-03-21 11:37:49 +01:00 committed by GitHub
parent 6b9dbc32e9
commit 4f88e41fc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,7 +100,9 @@ export default function UsersSection() {
}
},
([storageProviders, realm]) => {
setUserStorage(storageProviders);
setUserStorage(
storageProviders.filter((p) => p.config?.enabled[0] === "true")
);
setRealm(realm);
},
[]