Skip to content

Commit

Permalink
fix(core): 优化更新gridSize的相关逻辑 * 2
Browse files Browse the repository at this point in the history
  • Loading branch information
DymoneLewis authored and boyongjiong committed Dec 12, 2024
1 parent f125c95 commit f6222fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/LogicFlow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -899,9 +899,8 @@ export class LogicFlow {
if (!isNil(config?.snapGrid) && config.snapGrid !== currentSnapGrid) {
const {
grid: { size = 1 },
editConfigModel: { snapGrid },
} = this.graphModel
this.graphModel.updateGridSize(snapGrid ? size : 1)
this.graphModel.updateGridSize(config.snapGrid ? size : 1)
}
}

Expand Down

0 comments on commit f6222fb

Please sign in to comment.