Skip to content

Commit fe8cadf

Browse files
authored
[agent-flow] 1.Fix scroll to shape null ptr bug 2.Upgrade version to 1.0.0-alpha.8 (#4)
1 parent 0fc0b01 commit fe8cadf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

agent-flow/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@fit-elsa/agent-flow",
33
"private": false,
4-
"version": "1.0.0-alpha.7",
4+
"version": "1.0.0-alpha.8",
55
"type": "module",
66
"main": "./build/agent-flow.js",
77
"module": "./build/agent-flow.js",

agent-flow/src/flow/jadeFlowEntry.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ const jadeFlowAgent = (graph) => {
359359
* @param shapeId 需要聚焦到的图形id.
360360
*/
361361
self.scrollToShape = (shapeId) => {
362-
graph.activePage.shapes.find(s => s.id === shapeId).toScreenCenter();
362+
graph.activePage.sm.shapes.find(s => s.id === shapeId).toScreenCenter();
363363
};
364364

365365
/**

0 commit comments

Comments
 (0)