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

Commit

Permalink
Merge pull request #549 from metasfresh/dev-462
Browse files Browse the repository at this point in the history
If document was not found forward to documents view #462
  • Loading branch information
damianprzygodzki authored Mar 20, 2017
2 parents b848ca9 + ec587ae commit 99dec1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/actions/WindowActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ export function initWindow(windowType, docId, tabId, rowId = null, isAdvanced) {
} else {
//Existing master document
return dispatch(getData('window', windowType, docId, null, null, null, null, isAdvanced))
.catch(() => {
dispatch(push('/window/'+ windowType));
});
}
}
}
Expand Down

0 comments on commit 99dec1a

Please sign in to comment.