Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix: prevent alva from crashing when element contents are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
marionebl committed Sep 10, 2018
1 parent a1485c3 commit b03fad0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderer/create-edit-message-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ export function createEditMessageHandler({
}

const contextProject = Model.Project.from(message.payload.project);

const sourceElement = Model.Element.from(message.payload.element, {
project: contextProject
});

const clonedElement = sourceElement.clone();

// TODO: Check if the pattern can be resolved, abort when missing
Expand Down

0 comments on commit b03fad0

Please sign in to comment.