Skip to content

Commit

Permalink
[frontend] Display missing reference errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelHassine committed Oct 19, 2023
1 parent 4c38b6a commit e397003
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,6 @@ class ConnectorWorksComponent extends Component {
{works.map((workEge) => {
const work = workEge.node;
const { tracking } = work;
const errors = filter(
(n) => !n.message.includes('MissingReferenceError'),
work.errors,
);
return (
<Paper
key={work.id}
Expand Down Expand Up @@ -272,10 +268,10 @@ class ConnectorWorksComponent extends Component {
style={{ position: 'absolute', right: 10, top: 10 }}
variant="contained"
color="secondary"
onClick={this.handleOpenErrors.bind(this, errors)}
onClick={this.handleOpenErrors.bind(this, work.errors)}
size="small"
>
{errors.length} {t('errors')}
{work.errors.length} {t('errors')}
</Button>
<Button
variant="outlined"
Expand Down

0 comments on commit e397003

Please sign in to comment.