diff --git a/scm-ui-components/packages/ui-components/src/BackendErrorNotification.js b/scm-ui-components/packages/ui-components/src/BackendErrorNotification.js index 63eb36c130..31106593c4 100644 --- a/scm-ui-components/packages/ui-components/src/BackendErrorNotification.js +++ b/scm-ui-components/packages/ui-components/src/BackendErrorNotification.js @@ -69,8 +69,8 @@ class BackendErrorNotification extends React.Component { const { error, t } = this.props; return ( <> - {this.renderContext(error)} - {this.renderMoreInformationLink(error)} + {this.renderContext()} + {this.renderMoreInformationLink()}
{t("errors.transactionId")} {error.transactionId} @@ -83,7 +83,8 @@ class BackendErrorNotification extends React.Component { ); }; - renderContext = (error: BackendError) => { + renderContext = () => { + const { error, t} = this.props; if (error.context) { return ( <> @@ -104,8 +105,8 @@ class BackendErrorNotification extends React.Component { } }; - renderMoreInformationLink = (error: BackendError) => { - const { t } = this.props; + renderMoreInformationLink = () => { + const { error, t } = this.props; if (error.url) { return (