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

Commit

Permalink
fix: avoid exceptions when no project is set
Browse files Browse the repository at this point in the history
  • Loading branch information
marionebl committed May 30, 2018
1 parent ff9f654 commit b9424a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/electron/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,10 @@ Mobx.autorunAsync(() => {

Mobx.autorunAsync(() => {
const project = store.getProject();
const serializedProject = project.toJSON();

if (project) {
const serializedProject = project.toJSON();

const payload = {
path: project.getPath(),
project: serializedProject
Expand Down

0 comments on commit b9424a1

Please sign in to comment.