Skip to content

Commit adace29

Browse files
committed
Hard-match for tags array
1 parent 6eeb8ee commit adace29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

browser/main/reducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function compareArticle (original, modified) {
137137
var keys = _.keys(_.pick(modified, ['mode', 'title', 'tags', 'content', 'FolderKey']))
138138

139139
return keys.reduce((sum, key) => {
140-
if (original[key] !== modified[key]) {
140+
if ((key === 'tags' && !_.isEqual(original[key], modified[key])) || (key !== 'tags' && original[key] !== modified[key])) {
141141
if (sum == null) {
142142
sum = {
143143
key: original.key

0 commit comments

Comments
 (0)