Skip to content

Commit

Permalink
closes #1521
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasstjerne committed Jan 24, 2025
1 parent af92a4f commit 4b1bcbb
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/pages/catalogue/CatalogueSectors/SectorPageContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ class CatalogueSectors extends React.Component {
})
)
.catch((err) => {
this.setState({ loading: false, error: err, data: [] });
this.props.addError(err);
this.setState({ loading: false, data: [] });
});
};

Expand Down Expand Up @@ -278,7 +279,7 @@ class CatalogueSectors extends React.Component {
});
})
.catch((err) => {
this.setState({ error: err });
this.props.addError(err);
});
};

Expand Down Expand Up @@ -355,13 +356,13 @@ class CatalogueSectors extends React.Component {
error: null,
});
})
.catch((err) =>
.catch((err) => {
this.props.addError(err);
this.setState({
error: err,
rematchSectorsLoading: false,
rematchInfo: null,
})
);
});
});
};

deleteAllSectorsFromSource = (subjectDatasetKey) => {
Expand All @@ -384,12 +385,12 @@ class CatalogueSectors extends React.Component {
this.getData
);
})
.catch((err) =>
.catch((err) => {
this.props.addError(err);
this.setState({
error: err,
deleteSectorsLoading: false,
})
);
});
});
};

render() {
Expand Down

0 comments on commit 4b1bcbb

Please sign in to comment.