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:24:48 +00:00
parent 258cd5e2ec
commit 1bcee4c1b0

View File

@@ -33,6 +33,8 @@
this.currentState = this.$form.data('prev-state') || 'unknown';
if (this.currentState === 'unknown') {
this.selectActionButtons();
} else {
this.render();
}
this.$form.on('click', 'button.button-secondary', (event) => this.actionButtonClicked(event));