Skip to content

Commit

Permalink
records-community: fix error message display when removing a community
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshamarora1 authored Oct 2, 2024
1 parent ca315e5 commit 6f55980
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export class RemoveFromCommunityAction extends Component {
{error && (
<ErrorMessage
header={i18next.t("Something went wrong")}
content={error.response?.data?.errors[0]?.message || error.message}
content={error.response?.data?.errors?.[0]?.message || error.message}
icon="exclamation"
className="text-align-left"
negative
Expand Down

0 comments on commit 6f55980

Please sign in to comment.