1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Hard-match for tags array

This commit is contained in:
Rokt33r
2015-12-28 21:35:52 +09:00
parent 6eeb8eeba6
commit adace2954e

View File

@@ -137,7 +137,7 @@ function compareArticle (original, modified) {
var keys = _.keys(_.pick(modified, ['mode', 'title', 'tags', 'content', 'FolderKey']))
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) {
sum = {
key: original.key