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) {
5959 const newId = newnotehistory [ j ] . id . replace ( / = + $ / , '' )
6060 if ( id === newId || notehistory [ i ] . id === newnotehistory [ j ] . id || ! notehistory [ i ] . id || ! newnotehistory [ j ] . id ) {
6161 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' ) )
6363 if ( time >= newTime ) {
6464 newnotehistory [ j ] = notehistory [ i ]
6565 }
You can’t perform that action at this time.
0 commit comments