Skip to content

Commit e3f7515

Browse files
Gitta MarancsikGitta Marancsik
authored andcommitted
comments added
1 parent df09837 commit e3f7515

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/SPService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,13 +539,13 @@ export default class SPService implements ISPService {
539539
if (result && result[fieldName]) {
540540
const lookups = [];
541541
const isArray = Array.isArray(result[fieldName]);
542-
//multiselect lookups return arrays
542+
//multiselect lookups are arrays
543543
if (isArray) {
544544
result[fieldName].forEach(element => {
545545
lookups.push({ key: element.ID, name: element[lookupFieldName || 'Title'] });
546546
});
547547
}
548-
//single select lookups return objects
548+
//single select lookups are objects
549549
else {
550550
const singleItem = result[fieldName];
551551
lookups.push({ key: singleItem.ID, name: singleItem[lookupFieldName || 'Title'] });

0 commit comments

Comments
 (0)