We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df09837 commit e3f7515Copy full SHA for e3f7515
src/services/SPService.ts
@@ -539,13 +539,13 @@ export default class SPService implements ISPService {
539
if (result && result[fieldName]) {
540
const lookups = [];
541
const isArray = Array.isArray(result[fieldName]);
542
- //multiselect lookups return arrays
+ //multiselect lookups are arrays
543
if (isArray) {
544
result[fieldName].forEach(element => {
545
lookups.push({ key: element.ID, name: element[lookupFieldName || 'Title'] });
546
});
547
}
548
- //single select lookups return objects
+ //single select lookups are objects
549
else {
550
const singleItem = result[fieldName];
551
lookups.push({ key: singleItem.ID, name: singleItem[lookupFieldName || 'Title'] });
0 commit comments