mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-19 00:31:35 -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';
|
||||
if (this.currentState === 'unknown') {
|
||||
this.selectActionButtons();
|
||||
} else {
|
||||
this.render();
|
||||
}
|
||||
|
||||
this.$form.on('click', 'button.button-secondary', (event) => this.actionButtonClicked(event));
|
||||
|
||||
Reference in New Issue
Block a user