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

Commit

Permalink
If document was not found forward to documents view #462
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunkat committed Mar 17, 2017
1 parent b848ca9 commit 99c4adc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/actions/WindowActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import {
import {
addNotification,
setProcessSaved,
setProcessPending
setProcessPending,
browseViewRequest
} from './AppActions'

export function setLatestNewDocument(id) {
Expand Down Expand Up @@ -331,6 +332,10 @@ 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 99c4adc

Please sign in to comment.