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 {
});
}
setKnativeDomain(data) {
const appId = data.id;
setKnativeDomain({ id: appId, domain, domainId }) {
this.store.updateAppProperty(appId, 'isEditingDomain', true);
this.store.updateAppProperty(appId, 'hostname', data.domain);
this.store.updateAppProperty(
appId,
'pagesDomain',
data.domainId ? { id: data.domainId, domain: data.domain } : null,
);
this.store.updateAppProperty(appId, 'hostname', domain);
this.store.updateAppProperty(appId, 'pagesDomain', domainId ? { id: domainId, domain } : null);
}
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