1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

Desktop: Fix bug in note tags display due to error in comparison of tag lists. (#2302)

This commit is contained in:
mic704b 2020-01-19 00:55:35 +11:00 committed by Laurent Cozic
parent 35f4ede11a
commit b304e2ae1f

View File

@ -689,13 +689,21 @@ class NoteTextComponent extends React.Component {
if (newTags.length !== oldTags.length) return true;
for (let i = 0; i < newTags.length; ++i) {
let found = false;
let currNewTag = newTags[i];
for (let j = 0; j < oldTags.length; ++j) {
let currOldTag = oldTags[j];
if (currOldTag.id === currNewTag.id && currOldTag.updated_time !== currNewTag.updated_time) {
return true;
if (currOldTag.id === currNewTag.id) {
found = true;
if (currOldTag.updated_time !== currNewTag.updated_time) {
return true;
}
break;
}
}
if (!found) {
return true;
}
}
return false;