From 6db1cbed206b11b18c9540288192c9d0c5cca36f Mon Sep 17 00:00:00 2001 From: Charlie Meister Date: Fri, 22 Nov 2024 18:03:16 +0100 Subject: [PATCH] fix createnode method --- frontend/javascripts/oxalis/geometries/skeleton.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/javascripts/oxalis/geometries/skeleton.ts b/frontend/javascripts/oxalis/geometries/skeleton.ts index 3b4c8968ae0..eb4af6c3f14 100644 --- a/frontend/javascripts/oxalis/geometries/skeleton.ts +++ b/frontend/javascripts/oxalis/geometries/skeleton.ts @@ -13,7 +13,7 @@ import NodeShader, { import Store from "oxalis/throttled_store"; import * as Utils from "libs/utils"; import type { AdditionalCoordinate } from "types/api_flow_types"; -import type { UpdateActionNode } from "oxalis/model/sagas/update_actions"; +import type { CreateActionNode, UpdateActionNode } from "oxalis/model/sagas/update_actions"; const MAX_CAPACITY = 1000; @@ -518,7 +518,7 @@ class Skeleton { /** * Creates a new node in a WebGL buffer. */ - createNode(treeId: number, node: Node | UpdateActionNode) { + createNode(treeId: number, node: Node | UpdateActionNode | CreateActionNode) { const id = this.combineIds(node.id, treeId); this.create( id,