From ceb11ae52a50d579777abcd309827e6ff0bf62f3 Mon Sep 17 00:00:00 2001 From: tophf Date: Mon, 26 Feb 2018 22:56:42 +0300 Subject: [PATCH] ignore dates and other meta data when diffing --- manage/manage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manage/manage.js b/manage/manage.js index cb24dbb9..3a618dd6 100644 --- a/manage/manage.js +++ b/manage/manage.js @@ -547,7 +547,8 @@ function handleUpdate(style, {reason, method, codeIsUpdated} = {}) { function handleToggledOrCodeOnly() { const newStyleMeta = getStyleWithNoCode(style); - const diff = objectDiff(oldEntry.styleMeta, newStyleMeta); + const diff = objectDiff(oldEntry.styleMeta, newStyleMeta) + .filter(({key, path}) => path || (!key.startsWith('original') && !key.endsWith('Date'))); if (diff.length === 0) { // only code was modified entry = oldEntry;