Selaa lähdekoodia

[RN] Fix a TypeError when invoking humanize() on undefined

master
Lyubo Marinov 7 vuotta sitten
vanhempi
commit
037e7f59b0
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      react/features/recent-list/functions.js

+ 1
- 1
react/features/recent-list/functions.js Näytä tiedosto

@@ -50,7 +50,7 @@ export function getRecentRooms(list: Array<Object>): Array<Object> {
50 50
 
51 51
             if (uri && uri.room && uri.hostname) {
52 52
                 const duration
53
-                    = e.duration || /* legacy */ e.conferenceDuration;
53
+                    = e.duration || /* legacy */ e.conferenceDuration || 0;
54 54
 
55 55
                 recentRoomDS.push({
56 56
                     baseURL: `${uri.protocol}//${uri.host}`,

Loading…
Peruuta
Tallenna