This commit is contained in:
loganhz 2018-05-12 22:22:59 +08:00
parent 090a4bfa5b
commit 31bae17cd2
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ export default Component.extend(ViewNewEdit, ChildHook, {
if ( get(this, 'model.targetWorkloads').some((target) => target.namespaceId !== get(this, 'namespace.id')) ) {
set(this, 'model.targetWorkloadIds', null);
set(this, 'recordType', null);
next(() => {
set(this, 'recordType', 'workload');
});