Explorar o código

fix: no migrating `draw` lines correctly

dwelle %!s(int64=4) %!d(string=hai) anos
pai
achega
a8a5e7b6ff
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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,