Skip to content

Commit

Permalink
Detect export canceled and exit. Fixes #952
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Jan 14, 2017
1 parent cdd46ab commit 59094a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/visualizers/panels/ForgeActionButton/ForgeActionButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,10 @@ define([
exportFormat = (globalOpts.length && formatOpts) ? formatOpts.exportFormat : exportFormats[0],
staticInputs = Object.keys(inputOpts || {}).filter(input => inputOpts[input]);

if (!formatOpts) { // canceled
return;
}

this.logger.debug('Exporting pipeline to format', exportFormat);
this.logger.debug('static inputs:', staticInputs);

Expand Down

0 comments on commit 59094a6

Please sign in to comment.