Skip to content

Commit

Permalink
Remove loading placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
kdelemme committed Dec 4, 2024
1 parent 48ad2fa commit 6cff219
Showing 1 changed file with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,17 @@ export function InvestigationNotes({ user }: Props) {
</EuiSplitPanel.Inner>
<EuiSplitPanel.Inner>
<EuiFlexGroup direction="column" gutterSize="m">
{isLoading || notes === undefined
? 'Loading...'
: notes.map((currNote: InvestigationNoteResponse) => {
return (
<Note
key={currNote.id}
note={currNote}
userProfile={userProfiles?.[currNote.createdBy]}
userProfileLoading={isLoadingUserProfiles}
isOwner={currNote.createdBy === user.profile_uid}
/>
);
})}
{notes?.map((currNote: InvestigationNoteResponse) => {
return (
<Note
key={currNote.id}
note={currNote}
userProfile={userProfiles?.[currNote.createdBy]}
userProfileLoading={isLoadingUserProfiles}
isOwner={currNote.createdBy === user.profile_uid}
/>
);
})}
</EuiFlexGroup>
</EuiSplitPanel.Inner>
<EuiSplitPanel.Inner>
Expand Down

0 comments on commit 6cff219

Please sign in to comment.