From 3af2b9a103d98f7950cb24c35fee61e47f226f57 Mon Sep 17 00:00:00 2001 From: eight Date: Fri, 7 Dec 2018 13:25:58 +0800 Subject: [PATCH] Fix: don't use null as id --- 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) {