From 59094a63be96b590f53a6495cdc2ab5d6a0bc2a2 Mon Sep 17 00:00:00 2001 From: Brian Broll Date: Sat, 14 Jan 2017 11:23:34 -0600 Subject: [PATCH] Detect export canceled and exit. Fixes #952 --- src/visualizers/panels/ForgeActionButton/ForgeActionButton.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/visualizers/panels/ForgeActionButton/ForgeActionButton.js b/src/visualizers/panels/ForgeActionButton/ForgeActionButton.js index d4bca6309..92967cdb7 100644 --- a/src/visualizers/panels/ForgeActionButton/ForgeActionButton.js +++ b/src/visualizers/panels/ForgeActionButton/ForgeActionButton.js @@ -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);