Fixed a bug in the WizardSettingsModal being destroyed and still trying to do things.
This commit is contained in:
parent
f79a2848fd
commit
107a727d02
1 changed files with 2 additions and 1 deletions
|
@ -50,10 +50,11 @@ module.exports = class WizardSettingsModal extends ModalView
|
||||||
res.error =>
|
res.error =>
|
||||||
errors = JSON.parse(res.responseText)
|
errors = JSON.parse(res.responseText)
|
||||||
console.warn 'Got errors saving user:', errors
|
console.warn 'Got errors saving user:', errors
|
||||||
|
return if @destroyed
|
||||||
forms.applyErrorsToForm(@$el, errors)
|
forms.applyErrorsToForm(@$el, errors)
|
||||||
@disableModalInProgress(@$el)
|
@disableModalInProgress(@$el)
|
||||||
|
|
||||||
res.success (model, response, options) =>
|
res.success (model, response, options) =>
|
||||||
@hide()
|
@hide() unless @destroyed
|
||||||
|
|
||||||
@enableModalInProgress(@$el)
|
@enableModalInProgress(@$el)
|
||||||
|
|
Reference in a new issue