mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +00:00
Hard-match for tags array
This commit is contained in:
@@ -137,7 +137,7 @@ function compareArticle (original, modified) {
|
|||||||
var keys = _.keys(_.pick(modified, ['mode', 'title', 'tags', 'content', 'FolderKey']))
|
var keys = _.keys(_.pick(modified, ['mode', 'title', 'tags', 'content', 'FolderKey']))
|
||||||
|
|
||||||
return keys.reduce((sum, key) => {
|
return keys.reduce((sum, key) => {
|
||||||
if (original[key] !== modified[key]) {
|
if ((key === 'tags' && !_.isEqual(original[key], modified[key])) || (key !== 'tags' && original[key] !== modified[key])) {
|
||||||
if (sum == null) {
|
if (sum == null) {
|
||||||
sum = {
|
sum = {
|
||||||
key: original.key
|
key: original.key
|
||||||
|
|||||||
Reference in New Issue
Block a user