-
Followers
- {data.ticket.following.map(
- (follower: any) => {
- const userMatch = users.find(
- (user) =>
- user.id === follower &&
- user.id !==
- data.ticket.assignedTo.id
- );
- console.log(userMatch);
- return userMatch ? (
-
- {userMatch.name}
-
- ) : null;
- }
- )}
+ {data.ticket.following &&
+ data.ticket.following.length > 0 && (
+
+
+
+
+
+
+
+
Followers
+ {data.ticket.following.map(
+ (follower: any) => {
+ const userMatch = users.find(
+ (user) =>
+ user.id === follower &&
+ user.id !==
+ data.ticket.assignedTo.id
+ );
+ console.log(userMatch);
+ return userMatch ? (
+
+ {userMatch.name}
+
+ ) : null;
+ }
+ )}
- {data.ticket.following.filter(
- (follower: any) =>
- follower !== data.ticket.assignedTo.id
- ).length === 0 && (
-
- This issue has no followers
-
- )}
-
-
-
-
- )}
+ {data.ticket.following.filter(
+ (follower: any) =>
+ follower !== data.ticket.assignedTo.id
+ ).length === 0 && (
+
+ This issue has no followers
+
+ )}
+
+