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

Commit

Permalink
#448 Fix for data structure
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed Mar 2, 2017
1 parent 2672389 commit 466f768
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/actions/WindowActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,11 @@ export function createWindow(windowType, docId = 'NEW', tabId, rowId, isModal =

if(index === 0 || !tab.queryOnActivate){
dispatch(getTab(tab.tabid, windowType, docId)).then(res => {
tabTmp[tab.tabid] = res;
})}
tabTmp[tab.tabid] = res;
dispatch(addRowData(tabTmp, getScope(isModal)));
})
}

dispatch(addRowData(tabTmp, getScope(isModal)));
}
)
}).catch((err) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/tabs/Tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Tab extends Component {

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

0 comments on commit 466f768

Please sign in to comment.