Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Sometimes wrong actions and references are displayed in menu #109
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed Nov 28, 2016
1 parent 43ab73c commit 65e2d3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/app/SubHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ class Subheader extends Component {

componentDidMount() {
const {dispatch, windowType, dataId, viewId} = this.props;
dispatch(setActions([]));

windowType && dataId && dispatch(getRelatedDocuments(windowType, dataId)).then((response) => {
dispatch(setReferences(response.data.references));
});
Expand Down

0 comments on commit 65e2d3a

Please sign in to comment.