Skip to content

Commit

Permalink
Merge pull request #4757 from mzimandl/fixes-0.15.x
Browse files Browse the repository at this point in the history
handling arguments
  • Loading branch information
tomachalek authored Feb 14, 2022
2 parents f5b473d + 379db9d commit c54df51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/actions/concordance.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ def append_filter(idx: int, attrname, items, ctx, fctxtype) -> int:
ag_op_idx = 1 # an initial index of auto-generated conc. operations
ag_op_idx = append_filter(ag_op_idx,
lemmaattr,
data.fc_lemword.split(),
data.fc_lemword.split() if data.fc_lemword else None,
(data.fc_lemword_wsize[0], data.fc_lemword_wsize[1], 1),
data.fc_lemword_type)
append_filter(ag_op_idx,
Expand Down
4 changes: 3 additions & 1 deletion public/files/js/multidict.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ export class MultiDict<T={[k:string]:string|number|boolean}> implements Kontext.
if (this.data[k] === undefined) {
this.data[k] = [];
}
this.data[k].push(this.importValue(v));
if (this.importValue(v) !== undefined) {
this.data[k].push(this.importValue(v));
}
}
}
}
Expand Down

0 comments on commit c54df51

Please sign in to comment.