From 30d00dbd3a278de6db9b895f9f35fc60091974df Mon Sep 17 00:00:00 2001 From: eight Date: Sat, 8 Dec 2018 11:57:43 +0800 Subject: [PATCH] Fix: don't use null as id (#606) --- manage/import-export.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manage/import-export.js b/manage/import-export.js index 2605e0a5..1a2f1d15 100644 --- a/manage/import-export.js +++ b/manage/import-export.js @@ -161,7 +161,7 @@ function importFromString(jsonString) { if (sameStyle(byId, item)) { oldStyle = byId; } else { - item.id = null; + delete item.id; } } if (!oldStyle && byName) {