From ab6f0b09d730b9cf7da5c52965a89844b95ee732 Mon Sep 17 00:00:00 2001 From: CC Worker Date: Sun, 7 Jun 2026 02:21:32 +0000 Subject: [PATCH] fix: remove duplicate bindingUtils causing tldraw arrow double-registration Tldraw 3.6.1 Tldraw component already registers defaultBindingUtils internally; passing them explicitly via the bindingUtils prop caused "Binding type 'arrow' is defined more than once" runtime crash. Co-Authored-By: Claude Sonnet 4.6 --- src/pages/exam/setup/ExamTemplateSetupPage.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/exam/setup/ExamTemplateSetupPage.tsx b/src/pages/exam/setup/ExamTemplateSetupPage.tsx index 07cc21c..72127f8 100644 --- a/src/pages/exam/setup/ExamTemplateSetupPage.tsx +++ b/src/pages/exam/setup/ExamTemplateSetupPage.tsx @@ -6,7 +6,7 @@ import ArrowBackIcon from '@mui/icons-material/ArrowBack' import SaveIcon from '@mui/icons-material/Save' import MouseIcon from '@mui/icons-material/Mouse' import '@tldraw/tldraw/tldraw.css' -import { Editor, Tldraw, createShapeId, defaultBindingUtils, TLShape } from '@tldraw/tldraw' +import { Editor, Tldraw, createShapeId, TLShape } from '@tldraw/tldraw' import axios from 'axios' import { ErrorBoundary } from '../../../components/ErrorBoundary' @@ -178,7 +178,6 @@ const ExamTemplateSetupInner: React.FC = () => {