use display header when set (#20553)

This commit is contained in:
Erik Jan de Wit 2023-05-30 13:47:41 +02:00 committed by GitHub
parent 27e79fb025
commit df5a823738
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ export const UserProfileFields = ({
return (
<ScrollForm
sections={[{ name: "" }, ...(config?.groups || [])].map((g) => ({
title: g.name || t("general"),
title: g.displayHeader || g.name || t("general"),
panel: (
<Form>
{g.displayDescription && (