render if currentState is defined

(this fixes bug where on error, it would show all states)
This commit is contained in:
Leo Hemsted
2018-12-19 15:25:43 +00:00
parent 258cd5e2ec
commit 1bcee4c1b0
@@ -33,6 +33,8 @@
this.currentState = this.$form.data('prev-state') || 'unknown'; this.currentState = this.$form.data('prev-state') || 'unknown';
if (this.currentState === 'unknown') { if (this.currentState === 'unknown') {
this.selectActionButtons(); this.selectActionButtons();
} else {
this.render();
} }
this.$form.on('click', 'button.button-secondary', (event) => this.actionButtonClicked(event)); this.$form.on('click', 'button.button-secondary', (event) => this.actionButtonClicked(event));