Fix sidecar issue

https://github.com/rancher/rancher/issues/16505
This commit is contained in:
loganhz 2018-11-14 22:35:38 +08:00
parent 0a7d8ae217
commit b76f93208b
1 changed files with 4 additions and 0 deletions

View File

@ -242,6 +242,10 @@ export default Component.extend(NewOrEdit, ChildHook, {
if (get(errors, 'length')) {
set(this, 'errors', errors);
if ( get(this, 'isSidekick') && !get(this, 'isUpgrade') ) {
get(pr, 'secondaryLaunchConfigs').pop();
}
return false;
}