From b8c2770745a03cc1de624308b0456930e5cd52b7 Mon Sep 17 00:00:00 2001 From: Susmitha Girumala Date: Thu, 30 Jul 2020 11:32:34 -0400 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20Do=20not=20set=20"type"?= =?UTF-8?q?=20for=20IAM=20when=20using=20scopeModel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/core/app/routes/scopes/scope/groups/new.js | 2 +- ui/core/app/routes/scopes/scope/roles/new.js | 2 +- ui/core/app/routes/scopes/scope/users/new.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/core/app/routes/scopes/scope/groups/new.js b/ui/core/app/routes/scopes/scope/groups/new.js index fe281afb2..baf98da65 100644 --- a/ui/core/app/routes/scopes/scope/groups/new.js +++ b/ui/core/app/routes/scopes/scope/groups/new.js @@ -9,6 +9,6 @@ export default class ScopesScopeGroupsNewRoute extends Route { */ model() { const scopeModel = this.modelFor('scopes.scope'); - return this.store.createRecord('group', { type: 'group', scopeModel }); + return this.store.createRecord('group', { scopeModel }); } } diff --git a/ui/core/app/routes/scopes/scope/roles/new.js b/ui/core/app/routes/scopes/scope/roles/new.js index bcde1bb0f..6b5e27688 100644 --- a/ui/core/app/routes/scopes/scope/roles/new.js +++ b/ui/core/app/routes/scopes/scope/roles/new.js @@ -9,6 +9,6 @@ export default class ScopesScopeRolesNewRoute extends Route { */ model() { const scopeModel = this.modelFor('scopes.scope'); - return this.store.createRecord('role', { type: 'role', scopeModel }); + return this.store.createRecord('role', { scopeModel }); } } diff --git a/ui/core/app/routes/scopes/scope/users/new.js b/ui/core/app/routes/scopes/scope/users/new.js index 89cca81d9..469680a4e 100644 --- a/ui/core/app/routes/scopes/scope/users/new.js +++ b/ui/core/app/routes/scopes/scope/users/new.js @@ -9,6 +9,6 @@ export default class ScopesScopeUsersNewRoute extends Route { */ model() { const scopeModel = this.modelFor('scopes.scope'); - return this.store.createRecord('user', { type: 'user', scopeModel }); + return this.store.createRecord('user', { scopeModel }); } }