diff --git a/src/actions.ts b/src/actions.ts index ffb8536..a887abb 100644 --- a/src/actions.ts +++ b/src/actions.ts @@ -23,7 +23,7 @@ export const createNode = ( position: Position ): CreateNodeAction => ({ type: "node/create", - id: `${kind}_${nanoid(10)}`, + id: `${String(kind).split('.')[0]}_${nanoid(10)}`, kind, position, })