File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -110,15 +110,27 @@ const HistoryAndNotifications = ({
110
110
>
111
111
< div
112
112
className = "flex justify-between items-center cursor-pointer"
113
- onClick = { ( ) => toggleNotificationExpansion ( index ) }
113
+ onClick = { ( ) =>
114
+ toggleNotificationExpansion (
115
+ serverNotifications . length - 1 - index ,
116
+ )
117
+ }
114
118
>
115
119
< span className = "font-mono" >
116
120
{ serverNotifications . length - index } .{ " " }
117
121
{ notification . method }
118
122
</ span >
119
- < span > { expandedNotifications [ index ] ? "▼" : "▶" } </ span >
123
+ < span >
124
+ { expandedNotifications [
125
+ serverNotifications . length - 1 - index
126
+ ]
127
+ ? "▼"
128
+ : "▶" }
129
+ </ span >
120
130
</ div >
121
- { expandedNotifications [ index ] && (
131
+ { expandedNotifications [
132
+ serverNotifications . length - 1 - index
133
+ ] && (
122
134
< div className = "mt-2" >
123
135
< div className = "flex justify-between items-center mb-1" >
124
136
< span className = "font-semibold text-purple-600" >
You can’t perform that action at this time.
0 commit comments