Skip to content

Commit b853e16

Browse files
committed
refactor(web): shorten ReactFlow node id
1 parent 691e843 commit b853e16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/components/SchemaUI/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function SchemaUI(props: SchemaUIProps) {
8787
}
8888

8989
const newNode: Node<INodeData> = {
90-
id: resource.type + '_' + uuidv4(),
90+
id: resource.type + '_' + uuidv4().slice(0, 4),
9191
type,
9292
position,
9393
data: {

0 commit comments

Comments
 (0)