From 5d0c8edacd1c3791fe51a5f660d8473d254b4446 Mon Sep 17 00:00:00 2001 From: Ruidy Nemausat Date: Fri, 21 Feb 2020 12:00:27 +0100 Subject: [PATCH] project page connected to API without authentication. Undefined data Errors handled --- client/src/components/ActivityCollection.tsx | 4 +- client/src/components/AvatarList.tsx | 4 +- client/src/controllers/ProjectController.tsx | 245 +++++++++---------- client/src/utils/Constants.ts | 2 +- client/src/viewModels/ProjectVM.ts | 21 +- 5 files changed, 134 insertions(+), 142 deletions(-) diff --git a/client/src/components/ActivityCollection.tsx b/client/src/components/ActivityCollection.tsx index dc599dc..b37d8ac 100644 --- a/client/src/components/ActivityCollection.tsx +++ b/client/src/components/ActivityCollection.tsx @@ -7,7 +7,9 @@ type IProps = { }; export const ActivityCollection: FC = ({ activities, filterText }) => { - return ( + return activities === undefined ? ( + <> + ) : ( <>