From adace2954ede947b0df2642b220d6749ff0ab400 Mon Sep 17 00:00:00 2001 From: Rokt33r Date: Mon, 28 Dec 2015 21:35:52 +0900 Subject: [PATCH] Hard-match for tags array --- browser/main/reducer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/main/reducer.js b/browser/main/reducer.js index b1f98d51..1879d3f1 100644 --- a/browser/main/reducer.js +++ b/browser/main/reducer.js @@ -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