From 82e5cf00a69d311193dc31429c2f744941285c7d Mon Sep 17 00:00:00 2001 From: IsaacHook Date: Thu, 3 Mar 2022 12:01:43 +0000 Subject: [PATCH] update to use contract v2 (#3) Co-authored-by: Isaac Hook --- src/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, })