Selaa lähdekoodia

fix: no migrating `draw` lines correctly

dwelle 4 vuotta sitten
vanhempi
commit
a8a5e7b6ff
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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,