diff --git a/SharePointFramework/ProjectWebParts/src/components/ProjectStatus/reducer.ts b/SharePointFramework/ProjectWebParts/src/components/ProjectStatus/reducer.ts index 4e7df3cc9..ada895aa3 100644 --- a/SharePointFramework/ProjectWebParts/src/components/ProjectStatus/reducer.ts +++ b/SharePointFramework/ProjectWebParts/src/components/ProjectStatus/reducer.ts @@ -107,7 +107,7 @@ const createProjectStatusReducer = createReducer(initialState, { state.userHasAdminPermission = payload.data.userHasAdminPermission state.isDataLoaded = true - if (payload.initialSelectedReport.published) { + if (payload.initialSelectedReport?.published) { state.reportStatus = format( strings.PublishedStatusReport, formatDate(payload.initialSelectedReport?.publishedDate)