Skip to content

Commit

Permalink
update to use contract v2 (joeltg#3)
Browse files Browse the repository at this point in the history
Co-authored-by: Isaac Hook <[email protected]>
  • Loading branch information
IsaacHook and Isaac Hook authored Mar 3, 2022
1 parent 930dfab commit 82e5cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const createNode = <S extends Schema>(
position: Position
): CreateNodeAction<S> => ({
type: "node/create",
id: `${kind}_${nanoid(10)}`,
id: `${String(kind).split('.')[0]}_${nanoid(10)}`,
kind,
position,
})
Expand Down

0 comments on commit 82e5cf0

Please sign in to comment.