mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 18:37:33 -04:00
render if currentState is defined
(this fixes bug where on error, it would show all states)
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user