Skip to content

Commit

Permalink
Merge pull request #6345 from tomachalek/autocomplete_bib_fix
Browse files Browse the repository at this point in the history
Fix adding auto-complete items to the list
  • Loading branch information
tomachalek authored Nov 5, 2024
2 parents 87f9fb0 + cb72914 commit 1d519f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/files/js/models/textTypes/selectionOps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class TTSelOps {

static addValue(sel:TextTypes.AnyTTSelection, value:TextTypes.AttributeValue):TextTypes.AnyTTSelection {
if (sel.type == 'text') {
if (sel.values.find(x => x.value === value.value) === undefined) {
if (sel.values.find(x => x.ident === value.ident) === undefined) {
return {
...sel,
values: sel.values.concat([value])
Expand Down

0 comments on commit 1d519f4

Please sign in to comment.