File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ export function clearDuplicatedHistory (notehistory) {
59
59
const newId = newnotehistory [ j ] . id . replace ( / = + $ / , '' )
60
60
if ( id === newId || notehistory [ i ] . id === newnotehistory [ j ] . id || ! notehistory [ i ] . id || ! newnotehistory [ j ] . id ) {
61
61
const time = ( typeof notehistory [ i ] . time === 'number' ? moment ( notehistory [ i ] . time ) : moment ( notehistory [ i ] . time , 'MMMM Do YYYY, h:mm:ss a' ) )
62
- const newTime = ( typeof newnotehistory [ i ] . time === 'number' ? moment ( newnotehistory [ i ] . time ) : moment ( newnotehistory [ i ] . time , 'MMMM Do YYYY, h:mm:ss a' ) )
62
+ const newTime = ( typeof newnotehistory [ j ] . time === 'number' ? moment ( newnotehistory [ j ] . time ) : moment ( newnotehistory [ j ] . time , 'MMMM Do YYYY, h:mm:ss a' ) )
63
63
if ( time >= newTime ) {
64
64
newnotehistory [ j ] = notehistory [ i ]
65
65
}
You can’t perform that action at this time.
0 commit comments