auto-git:
[change] src/serialization/local-draft-storage.ts
This commit is contained in:
@@ -253,8 +253,6 @@ export function saveSceneDocumentDraft(
|
||||
options: SaveSceneDocumentDraftOptions = {}
|
||||
): SaveSceneDocumentDraftResult {
|
||||
try {
|
||||
assertProjectDocumentIsValid(document);
|
||||
|
||||
const maxSerializedBytes =
|
||||
options.maxSerializedBytes ?? DEFAULT_SCENE_DRAFT_MAX_SERIALIZED_BYTES;
|
||||
const estimatedDraftBytes = estimateProjectDraftSerializedBytes(
|
||||
@@ -278,6 +276,8 @@ export function saveSceneDocumentDraft(
|
||||
};
|
||||
}
|
||||
|
||||
assertProjectDocumentIsValid(document);
|
||||
|
||||
const rawDraft = JSON.stringify({
|
||||
format: EDITOR_DRAFT_ENVELOPE_FORMAT,
|
||||
document,
|
||||
|
||||
Reference in New Issue
Block a user