mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-15 21:29:23 +00:00
fix(common/models): logic check - deleteRight may be undefined
This commit is contained in:
parent
2b12b0a3e8
commit
c449d0318f
1 changed files with 1 additions and 1 deletions
|
|
@ -352,7 +352,7 @@ namespace correction {
|
|||
|
||||
const hasDistribution = transformDistribution && Array.isArray(transformDistribution);
|
||||
let primaryInput = hasDistribution ? transformDistribution[0].sample : null;
|
||||
if(primaryInput && primaryInput.insert == "" && primaryInput.deleteLeft == 0 && primaryInput.deleteRight == 0) {
|
||||
if(primaryInput && primaryInput.insert == "" && primaryInput.deleteLeft == 0 && !primaryInput.deleteRight) {
|
||||
primaryInput = null;
|
||||
}
|
||||
const isBackspace = primaryInput && primaryInput.insert == "" && primaryInput.deleteLeft > 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue