Set editing to false on request error

Closes PLAT-4574

Test Plan:
Create an LTI key via pasting JSON. Use invalid JSON on first
attempt. Verify you can then use valid JSON without refreshing.

Change-Id: Ic0be5675951649aeafda3002d47f4aac786354b5
Reviewed-on: https://gerrit.instructure.com/196889
Reviewed-by: Drake Harper <dharper@instructure.com>
Reviewed-by: Marc Phillips <mphillips@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
QA-Review: Marc Phillips <mphillips@instructure.com>
Tested-by: Jenkins
Product-Review: Weston Dransfield <wdransfield@instructure.com>
This commit is contained in:
wdransfield 2019-06-07 09:04:27 -06:00 committed by Weston Dransfield
parent 209719210c
commit 782f7eeabc
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ actions.saveLtiToolConfiguration = ({
})
.catch(error => {
dispatch(actions.saveLtiToolConfigurationFailed(error))
dispatch(developerKeysActions.setEditingDeveloperKey(false))
$.flashError(error.message)
return error
})