mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Remove last committed point json (#2371)
Co-authored-by: rene_mbp <harryloveslearning@googlemail.com> Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
4371c29f0c
commit
a1fbec1030
4 changed files with 26 additions and 5 deletions
|
@ -6,6 +6,7 @@ import { LibraryData, ImportedDataState } from "./types";
|
|||
import { calculateScrollCenter } from "../scene";
|
||||
import { MIME_TYPES } from "../constants";
|
||||
import { CanvasError } from "../errors";
|
||||
import { clearElementsForExport } from "../element";
|
||||
|
||||
export const parseFileContents = async (blob: Blob | File) => {
|
||||
let contents: string;
|
||||
|
@ -90,7 +91,7 @@ export const loadFromBlob = async (
|
|||
}
|
||||
return restore(
|
||||
{
|
||||
elements: data.elements,
|
||||
elements: clearElementsForExport(data.elements || []),
|
||||
appState: {
|
||||
appearance: localAppState?.appearance,
|
||||
fileHandle:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue