restore custom elements with correct type

This commit is contained in:
ad1992
2022-03-30 14:20:29 +05:30
parent d27b32dd2c
commit ed3eda3401
2 changed files with 29 additions and 1 deletions
+3 -1
View File
@@ -195,7 +195,9 @@ const restoreElement = (
});
}
case "custom":
return restoreElementWithProperties(element, { customType: "custom" });
return restoreElementWithProperties(element, {
customType: element.customType || "custom",
});
// generic elements
case "ellipse":
return restoreElementWithProperties(element, {});