Merge branch 'master' into v1.7.1_promote_release_to_master
This commit is contained in:
commit
f0663ec341
|
|
@ -454,6 +454,32 @@ export function* initializeAppViewerSaga(
|
|||
//Delay page load actions till all actions are retrieved.
|
||||
yield put(fetchPublishedPageSuccess([executePageLoadActions()]));
|
||||
|
||||
if (toLoadPageId) {
|
||||
yield put(fetchPublishedPage(toLoadPageId, true));
|
||||
|
||||
const resultOfFetchPage: {
|
||||
success: boolean;
|
||||
failure: boolean;
|
||||
} = yield race({
|
||||
success: take(ReduxActionTypes.FETCH_PUBLISHED_PAGE_SUCCESS),
|
||||
failure: take(ReduxActionErrorTypes.FETCH_PUBLISHED_PAGE_ERROR),
|
||||
});
|
||||
|
||||
if (resultOfFetchPage.failure) {
|
||||
yield put({
|
||||
type: ReduxActionTypes.SAFE_CRASH_APPSMITH_REQUEST,
|
||||
payload: {
|
||||
code: get(
|
||||
resultOfFetchPage,
|
||||
"failure.payload.error.code",
|
||||
ERROR_CODES.SERVER_ERROR,
|
||||
),
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
yield put(fetchCommentThreadsInit());
|
||||
|
||||
yield put({
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.Set;
|
||||
import java.util.HashSet;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.stream.Collectors;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user