File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,10 @@ export const History = () => {
16
16
< >
17
17
< ErrorListItem error = { error } />
18
18
19
- { data . map ( ( note ) => {
20
- return < NoteTreeItem key = { note . id } note = { note } /> ;
21
- } ) }
19
+ { ! error &&
20
+ data . map ( ( note ) => {
21
+ return < NoteTreeItem key = { note . id } note = { note } /> ;
22
+ } ) }
22
23
</ >
23
24
) ;
24
25
} ;
Original file line number Diff line number Diff line change @@ -14,11 +14,12 @@ export const MyNotes = () => {
14
14
15
15
return (
16
16
< >
17
- { data . map ( ( note ) => {
18
- return < NoteTreeItem key = { note . id } note = { note } /> ;
19
- } ) }
20
-
21
17
< ErrorListItem error = { error } />
18
+
19
+ { ! error &&
20
+ data . map ( ( note ) => {
21
+ return < NoteTreeItem key = { note . id } note = { note } /> ;
22
+ } ) }
22
23
</ >
23
24
) ;
24
25
} ;
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ export const TeamNotes = () => {
75
75
/>
76
76
) }
77
77
78
- { selectedTeam && < TeamTreeItem team = { selectedTeam } /> }
78
+ { ! error && selectedTeam && < TeamTreeItem team = { selectedTeam } /> }
79
79
</ >
80
80
) ;
81
81
} ;
You can’t perform that action at this time.
0 commit comments