You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-08-10 22:11:50 +02:00
Mobile: Change revisions to be presented in reverse order in the dropdown (#12406)
This commit is contained in:
@@ -118,7 +118,8 @@ const NoteRevisionViewer: React.FC<Props> = props => {
|
|||||||
|
|
||||||
const options = useMemo(() => {
|
const options = useMemo(() => {
|
||||||
const result = [];
|
const result = [];
|
||||||
for (const revision of revisions) {
|
const reversedRevisions = revisions.slice().reverse();
|
||||||
|
for (const revision of reversedRevisions) {
|
||||||
const stats = Revision.revisionPatchStatsText(revision);
|
const stats = Revision.revisionPatchStatsText(revision);
|
||||||
result.push({
|
result.push({
|
||||||
label: `${formatMsToLocal(revision.item_updated_time)} (${stats})`,
|
label: `${formatMsToLocal(revision.item_updated_time)} (${stats})`,
|
||||||
|
Reference in New Issue
Block a user