Skip to content

Commit

Permalink
Smooth out object selection
Browse files Browse the repository at this point in the history
  • Loading branch information
aheber committed Mar 17, 2024
1 parent ced8622 commit dd1be93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dlrs/main/lwc/rollupEditor/rollupEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ export default class RollupEditor extends LightningModal {
const refs = event.detail?.selectedOption?.referencesTo;
if (refs && refs.length === 1) {
this.rollup.ParentObject__c = refs[0];
this.rollup.AggregateResultField__c = undefined;
this.getParentRelationshipFieldOptions();
}
}
Expand Down Expand Up @@ -436,11 +437,16 @@ export default class RollupEditor extends LightningModal {
childObjectSelected(event) {
this.rollup.ChildObject__c = event.detail.selectedRecord;
this.getChildRelationshipFieldOptions();
this.rollup.FieldToAggregate__c = undefined;
this.rollup.RelationshipField__c = undefined;
this.configureSteps();
}

parentObjectSelected(event) {
this.rollup.ParentObject__c = event.detail.selectedRecord;
this.getParentRelationshipFieldOptions();
this.rollup.AggregateResultField__c = undefined;
this.configureSteps();
}

get supportsTrigger() {
Expand Down

0 comments on commit dd1be93

Please sign in to comment.