mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-08 01:45:32 +00:00
fix(web): prevent undefined traversal entry
This commit is contained in:
parent
1942309356
commit
33ae31f3a4
1 changed files with 4 additions and 1 deletions
|
|
@ -357,7 +357,10 @@ export class SearchNode {
|
|||
node.partialEdge.subsetSubindex++;
|
||||
// Append the newly-processed char to the subset's `insert` string.
|
||||
node.partialEdge.transformSubset = {...subset, key: startSubset.key, insert: subset.insert + char};
|
||||
node.matchedTraversals.push(childTraversal);
|
||||
// '' inserts do not traverse deeper; do not add an empty traversal entry!
|
||||
if(childTraversal) {
|
||||
node.matchedTraversals.push(childTraversal);
|
||||
}
|
||||
nodesToReturn.push(node);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue