fix: Spell error

This commit is contained in:
zhangzhanwei 2025-12-24 18:08:49 +08:00 committed by zhanweizhang7
parent cfb488e705
commit ef15c3f997

View File

@ -279,8 +279,8 @@ function addOrderToTree(nodes: any, parentId: string): Node[] {
nodes.forEach((node: any) => {
if (positions[node.id] === undefined) {
const existingPostions: any = Object.values(positions)
const maxPos = existingPostions.length > 0 ? Math.max(...existingPostions) : 0
const existingPositions: any = Object.values(positions)
const maxPos = existingPositions.length > 0 ? Math.max(...existingPositions) : 0
positions[node.id] = maxPos + encode(1, 0)
needSave = true