Skip to content

Commit f6222fb

Browse files
DymoneLewisboyongjiong
authored andcommitted
fix(core): 优化更新gridSize的相关逻辑 * 2
1 parent f125c95 commit f6222fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/core/src/LogicFlow.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -899,9 +899,8 @@ export class LogicFlow {
899899
if (!isNil(config?.snapGrid) && config.snapGrid !== currentSnapGrid) {
900900
const {
901901
grid: { size = 1 },
902-
editConfigModel: { snapGrid },
903902
} = this.graphModel
904-
this.graphModel.updateGridSize(snapGrid ? size : 1)
903+
this.graphModel.updateGridSize(config.snapGrid ? size : 1)
905904
}
906905
}
907906

0 commit comments

Comments
 (0)