Browse Source

fixed version number

Skylsmoi 5 years ago
parent
commit
c7411265a6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/component/Timeline/Timeline.jsx

+ 1 - 1
src/component/Timeline/Timeline.jsx View File

@@ -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
           }