浏览代码

fix: no migrating `draw` lines correctly

dwelle 4 年之前
父节点
当前提交
a8a5e7b6ff
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/data/restore.ts

+ 3 - 0
src/data/restore.ts

@@ -122,6 +122,9 @@ const restoreElement = (
       });
     }
     case "line":
+    // @ts-ignore LEGACY type
+    // eslint-disable-next-line no-fallthrough
+    case "draw":
     case "arrow": {
       const {
         startArrowhead = null,