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

Commit

Permalink
#774 Query on activate only when id is set
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed May 22, 2017
1 parent 0379d5f commit c61022e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tabs/Tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Tab extends Component {
dispatch, tabid, windowType, queryOnActivate, docId
} = this.props;

if(queryOnActivate){
if(docId && queryOnActivate){
dispatch(getTab(tabid, windowType, docId)).then(res => {
dispatch(addRowData({[tabid]: res}, 'master'));
});
Expand Down

0 comments on commit c61022e

Please sign in to comment.