Skip to content

Commit

Permalink
Merge pull request #249 from netgrif/NAE-2013
Browse files Browse the repository at this point in the history
[NAE-2013] Autocomplete options are set to the first dropdown
  • Loading branch information
machacjozef authored Nov 7, 2024
2 parents 2047def + 3d6458e commit 684b73e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ export abstract class TaskContentService implements OnDestroy {

protected getReferencedTaskId(changedField: string, chFields: ChangedFields): string {
return !!this.taskFieldsIndex ?
Object.keys(this.taskFieldsIndex).find(taskId => taskId !== this.task.stringId && taskId === chFields.taskId && Object.keys(this.taskFieldsIndex[taskId].fields).includes(changedField)) : undefined;
(Object.keys(this.taskFieldsIndex).find(taskId => taskId !== this.task.stringId && taskId === chFields.taskId && Object.keys(this.taskFieldsIndex[taskId].fields).includes(changedField))
|| Object.keys(this.taskFieldsIndex).find(taskId => taskId !== this.task.stringId && Object.keys(this.taskFieldsIndex[taskId].fields).includes(changedField))) : undefined;
}

protected findTaskRefId(taskId: string, fields: { [fieldId: string]: DataField<any>}): DataField<any> {
Expand Down

0 comments on commit 684b73e

Please sign in to comment.