Skip to content

Commit

Permalink
Detect export canceled and exit. Fixes #952 (#953)
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb authored Jan 15, 2017
1 parent 1f73517 commit f74d65b
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 f74d65b

Please sign in to comment.