Skip to content

Commit fbc285b

Browse files
SergioVillalta-JimenezSergioVillalta-Jimenez
authored andcommitted
added the right parameters
1 parent 86f48e3 commit fbc285b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controls/dynamicForm/DynamicForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ export class DynamicForm extends React.Component<IDynamicFormProps, IDynamicForm
362362
lookupListId = field["LookupList"];
363363
lookupField = field["LookupField"];
364364
if (item !== null) {
365-
defaultValue = await this._spService.getLookupValue(listId, listItemId, field.InternalName, this.webURL);
365+
defaultValue = await this._spService.getLookupValue(listId, listItemId, field.EntityPropertyName, lookupField, this.webURL);
366366
}
367367
else {
368368
defaultValue = [];
@@ -373,7 +373,7 @@ export class DynamicForm extends React.Component<IDynamicFormProps, IDynamicForm
373373
lookupListId = field["LookupList"];
374374
lookupField = field["LookupField"];
375375
if (item !== null) {
376-
defaultValue = await this._spService.getLookupValues(listId, listItemId, field.InternalName, this.webURL);
376+
defaultValue = await this._spService.getLookupValues(listId, listItemId, field.EntityPropertyName, lookupField, this.webURL);
377377
}
378378
else {
379379
defaultValue = [];

0 commit comments

Comments
 (0)