Pārlūkot izejas kodu

fix(recents-list): Order recents by last used

master
Vlad Piersec 4 gadus atpakaļ
vecāks
revīzija
9418dbc2b1
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      react/features/recent-list/functions.web.js

+ 1
- 1
react/features/recent-list/functions.web.js Parādīt failu

@@ -12,7 +12,7 @@ import { parseURIString, safeDecodeURIComponent } from '../base/util';
12 12
  */
13 13
 export function toDisplayableList(recentList) {
14 14
     return (
15
-        recentList.reverse()
15
+        [ ...recentList ].reverse()
16 16
             .map(item => {
17 17
                 return {
18 18
                     date: item.date,

Notiek ielāde…
Atcelt
Saglabāt