Commit a4ed543f authored by Mike Greiling's avatar Mike Greiling

Utilize object destructuring in setKnativeDomain

parent de968191
...@@ -521,15 +521,10 @@ export default class Clusters { ...@@ -521,15 +521,10 @@ export default class Clusters {
}); });
} }
setKnativeDomain(data) { setKnativeDomain({ id: appId, domain, domainId }) {
const appId = data.id;
this.store.updateAppProperty(appId, 'isEditingDomain', true); this.store.updateAppProperty(appId, 'isEditingDomain', true);
this.store.updateAppProperty(appId, 'hostname', data.domain); this.store.updateAppProperty(appId, 'hostname', domain);
this.store.updateAppProperty( this.store.updateAppProperty(appId, 'pagesDomain', domainId ? { id: domainId, domain } : null);
appId,
'pagesDomain',
data.domainId ? { id: data.domainId, domain: data.domain } : null,
);
} }
setCrossplaneProviderStack(data) { setCrossplaneProviderStack(data) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment