diff --git a/web/owlspa/src/actions/fetchPatchJavaScriptFile.js b/web/owlspa/src/actions/fetchPatchJavaScriptFile.js index 60be88c..8eff406 100644 --- a/web/owlspa/src/actions/fetchPatchJavaScriptFile.js +++ b/web/owlspa/src/actions/fetchPatchJavaScriptFile.js @@ -19,16 +19,19 @@ const fetchPatchJavaScriptFile = (patch) => { patchId: patch._id }); }).catch(err => { + console.error(err); + dispatch({ + type: 'RESET_PATCH_JAVASCRIPT' + }); dispatch(newDialog({ header: 'Error trying to run the patch', isError: true, tabs: [{ header: 'Error', isError: true, - contents: 'Darn it there was an Error trying to load or run this patch in the browser.' + contents: 'There was an error trying to load or run this patch in the browser.' }] })); - console.error(err); }) } }