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

Commit

Permalink
#883 Quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed Jun 14, 2017
1 parent da068c5 commit 66a8b73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/app/DocumentList.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class DocumentList extends Component {
connectWS = (viewId) => {
const {windowType} = this.props;
connectWS.call(this, '/view/' + viewId, (msg) => {
const {fullyChanged, changedIds} = msg.body;
const {fullyChanged, changedIds} = msg;
if(changedIds){
getDataByIds(
'documentView', windowType, viewId, changedIds.join()
Expand Down
3 changes: 3 additions & 0 deletions src/containers/MasterWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ class MasterWindow extends Component {
JSON.stringify(prevProps.me.language) !==
JSON.stringify(this.props.me.language)
){
if(!params.windowType && !params.docId){
return;
}
dispatch(replace(''));
dispatch(replace(
'/window/' + params.windowType + '/' + params.docId)
Expand Down

0 comments on commit 66a8b73

Please sign in to comment.