Skip to content

Commit 225019a

Browse files
committed
fix: #1088 recordPickerMultiValue selection
1 parent b0770f3 commit 225019a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

force-app/main/default/lwc/recordPickerMultiValue/recordPickerMultiValue.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ export default class RecordPickerMultiValue extends LightningElement {
9393
variables: '$variables'
9494
})
9595
wiredGraphQL({ data, errors }) {
96+
// Ignore graphql query results if the variables are undefined
97+
if (this.variables === undefined) {
98+
return;
99+
}
100+
96101
this.wireError = errors;
97102
if (errors || !data) {
98103
return;
@@ -127,6 +132,7 @@ export default class RecordPickerMultiValue extends LightningElement {
127132
}
128133

129134
handleRecordPickerChange(event) {
135+
console.log('handleRecordPickerChange', event.detail.recordId);
130136
this.selectedRecordId = event.detail.recordId;
131137
}
132138
}

0 commit comments

Comments
 (0)