浏览代码

Use correct group place for combineGroups

Use appropriate place instead of smallest group when creating placeholder groups between actual groups.
master
父节点
当前提交
a0a3251ca1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      packages/core/src/systems/en-US.ts

+ 1
- 1
packages/core/src/systems/en-US.ts 查看文件

@@ -778,7 +778,7 @@ export const combineGroups = (groups: Group[]) => {
const firstGroupPlace = firstGroup[GROUP_PLACE_INDEX];
const groupsSorted = [];
for (let i = maxPlace; i >= minPlace; i -= 1) {
const thisGroup = groups.find((g) => g[GROUP_PLACE_INDEX] === i) ?? [...EMPTY_PLACE];
const thisGroup = groups.find((g) => g[GROUP_PLACE_INDEX] === i) ?? [EMPTY_GROUP_DIGITS, i];
groupsSorted.push(thisGroup);
}



正在加载...
取消
保存