This is an automated email from the ASF dual-hosted git repository. wuzhiguo pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push: new cc043487e9 AMBARI-25153: Ambari web hangs at first step installation wizard (#3506) cc043487e9 is described below commit cc043487e9ed449615b57ce6b869a60847cc88ea Author: Zhiguo Wu <wuzhi...@apache.org> AuthorDate: Wed Nov 16 10:56:01 2022 +0800 AMBARI-25153: Ambari web hangs at first step installation wizard (#3506) --- ambari-web/app/controllers/installer.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ambari-web/app/controllers/installer.js b/ambari-web/app/controllers/installer.js index c3d9cb1526..5fd46e6ef4 100644 --- a/ambari-web/app/controllers/installer.js +++ b/ambari-web/app/controllers/installer.js @@ -305,6 +305,9 @@ App.InstallerController = App.WizardController.extend(App.Persist, { } }, this); } + if (!data.items || !data.items.length) { + this.setSelected(true, params.dfd); + } // if data.items is empty, we show error modal end return to back step if (data.items && data.items.length) { data.items.sortProperty('VersionDefinition.stack_version').reverse().forEach(function (versionDefinition) { @@ -358,7 +361,8 @@ App.InstallerController = App.WizardController.extend(App.Persist, { stacks.sortProperty('id').set('lastObject.isSelected', true); } this.set('content.stacks', App.Stack.find()); - App.set('currentStackVersion', App.Stack.find().findProperty('isSelected').get('stackNameVersion')); + var selected = App.Stack.find().findProperty('isSelected'); + App.set('currentStackVersion', selected ? selected.get('stackNameVersion') : null); dfd.resolve(); }, --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@ambari.apache.org For additional commands, e-mail: commits-h...@ambari.apache.org