mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: Spell error
This commit is contained in:
parent
cfb488e705
commit
8dcefe8c0b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue