mirror of https://github.com/rancher/ui.git
Fix editing aws node template issue
https://github.com/rancher/rancher/issues/15607
This commit is contained in:
parent
0a7d8ae217
commit
c52c25c26f
|
|
@ -307,7 +307,11 @@ export default Component.extend(NodeDriver, {
|
|||
}).sort().uniq();
|
||||
|
||||
if ( choices.length ) {
|
||||
set(this, 'selectedZone', choices[0]);
|
||||
if ( get(this, 'config.zone.length') ) {
|
||||
set(this, 'selectedZone', `${ get(this, 'config.region') }${ get(this, 'config.zone') }`);
|
||||
} else {
|
||||
set(this, 'selectedZone', choices[0]);
|
||||
}
|
||||
}
|
||||
|
||||
return choices;
|
||||
|
|
|
|||
Loading…
Reference in New Issue