diff --git a/SharePointFramework/PortfolioWebParts/src/components/LatestProjects/index.tsx b/SharePointFramework/PortfolioWebParts/src/components/LatestProjects/index.tsx index c2a9fb96f..9d291deae 100644 --- a/SharePointFramework/PortfolioWebParts/src/components/LatestProjects/index.tsx +++ b/SharePointFramework/PortfolioWebParts/src/components/LatestProjects/index.tsx @@ -28,10 +28,7 @@ export const LatestProjects: FC = (props) => { function renderLatestProjects(): JSX.Element[] | JSX.Element { if (!loading && projects.length === 0) { return ( - + ) } const viewCount = viewAll ? projects.length : props.rowLimit diff --git a/SharePointFramework/PortfolioWebParts/src/components/PortfolioInsights/index.tsx b/SharePointFramework/PortfolioWebParts/src/components/PortfolioInsights/index.tsx index 02ea3c21e..0b9c45b56 100644 --- a/SharePointFramework/PortfolioWebParts/src/components/PortfolioInsights/index.tsx +++ b/SharePointFramework/PortfolioWebParts/src/components/PortfolioInsights/index.tsx @@ -87,10 +87,7 @@ export class PortfolioInsights extends Component - + ) } diff --git a/SharePointFramework/PortfolioWebParts/src/components/ProjectList/index.tsx b/SharePointFramework/PortfolioWebParts/src/components/ProjectList/index.tsx index e9f380b91..f38dbc429 100644 --- a/SharePointFramework/PortfolioWebParts/src/components/ProjectList/index.tsx +++ b/SharePointFramework/PortfolioWebParts/src/components/ProjectList/index.tsx @@ -69,10 +69,7 @@ export const ProjectList: FC = (props) => { return (
- +
) @@ -81,11 +78,7 @@ export const ProjectList: FC = (props) => { if (state.error) { return (
- +
) } diff --git a/SharePointFramework/ProgramWebParts/src/components/ProgramAdministration/AddProjectDialog/useAddProjectDialog.ts b/SharePointFramework/ProgramWebParts/src/components/ProgramAdministration/AddProjectDialog/useAddProjectDialog.ts index 0c23c82a5..277d6280b 100644 --- a/SharePointFramework/ProgramWebParts/src/components/ProgramAdministration/AddProjectDialog/useAddProjectDialog.ts +++ b/SharePointFramework/ProgramWebParts/src/components/ProgramAdministration/AddProjectDialog/useAddProjectDialog.ts @@ -19,7 +19,7 @@ export const useAddProjectDialog = () => { }, []) const availableProjects = context.state.availableProjects.filter( - ({SiteId}) => + ({ SiteId }) => !context.state.childProjects.some((c) => c.SiteId === SiteId) && SiteId !== context.props.context.pageContext.site.id.toString() ) @@ -29,7 +29,7 @@ export const useAddProjectDialog = () => { * `` component. */ const onAddChildProjects = async () => { - const projects = availableProjects.filter(({SiteId}) => + const projects = availableProjects.filter(({ SiteId }) => context.state.addProjectDialog?.selectedProjects.includes(SiteId) ) await context.props.dataAdapter.addChildProjects(projects) diff --git a/SharePointFramework/ProjectWebParts/src/components/ProjectInformation/ProjectProperties/index.tsx b/SharePointFramework/ProjectWebParts/src/components/ProjectInformation/ProjectProperties/index.tsx index 706b43025..9c652fcf6 100644 --- a/SharePointFramework/ProjectWebParts/src/components/ProjectInformation/ProjectProperties/index.tsx +++ b/SharePointFramework/ProjectWebParts/src/components/ProjectInformation/ProjectProperties/index.tsx @@ -71,9 +71,7 @@ export const ProjectProperties: FC = (props) => { } default: { if (isEmpty(properties)) { - return ( - - ) + return } return (
diff --git a/SharePointFramework/ProjectWebParts/src/components/ProjectTimeline/ProjectTimeline.tsx b/SharePointFramework/ProjectWebParts/src/components/ProjectTimeline/ProjectTimeline.tsx index f62a5db4d..d207dcb55 100644 --- a/SharePointFramework/ProjectWebParts/src/components/ProjectTimeline/ProjectTimeline.tsx +++ b/SharePointFramework/ProjectWebParts/src/components/ProjectTimeline/ProjectTimeline.tsx @@ -25,11 +25,7 @@ export const ProjectTimeline: FC = (props) => {
) : state.error ? ( - + ) : (
{props.showTimeline && (