Przeglądaj źródła

fixed version number

Skylsmoi 6 lat temu
rodzic
commit
c7411265a6
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/component/Timeline/Timeline.jsx

+ 1 - 1
src/component/Timeline/Timeline.jsx Wyświetl plik

@@ -69,7 +69,7 @@ const Timeline = props => {
69 69
               return <Revision
70 70
                 customClass={props.customClass}
71 71
                 createdAt={content.created}
72
-                number={content.revision_id}
72
+                number={props.timelineData.filter(c => c.timelineType === 'revision' && c.revision_id <= content.revision_id).length}
73 73
                 key={`revision_${content.revision_id}`}
74 74
               />
75 75
           }