From 220d8aebda7b7efa0a17770fd8e2d8290a5d8387 Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Wed, 8 Sep 2021 11:58:24 +0100 Subject: [PATCH] Minor fixes --- packages/core/src/utils/utils.ts | 2 ++ packages/tldraw/src/components/tools-panel/status-bar.tsx | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/core/src/utils/utils.ts b/packages/core/src/utils/utils.ts index 943095370..88f3ff08d 100644 --- a/packages/core/src/utils/utils.ts +++ b/packages/core/src/utils/utils.ts @@ -1700,6 +1700,8 @@ left past the initial left edge) then swap points on that axis. setTimeout(() => (inThrottle = false), limit) + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore lastResult = func.apply(this, ...args) } diff --git a/packages/tldraw/src/components/tools-panel/status-bar.tsx b/packages/tldraw/src/components/tools-panel/status-bar.tsx index 5f8b9afd9..e644e9b5d 100644 --- a/packages/tldraw/src/components/tools-panel/status-bar.tsx +++ b/packages/tldraw/src/components/tools-panel/status-bar.tsx @@ -7,14 +7,14 @@ const statusSelector = (s: Data) => s.appState.status.current const activeToolSelector = (s: Data) => s.appState.activeTool export function StatusBar(): JSX.Element | null { - const { tlstate, useSelector } = useTLDrawContext() + const { useSelector } = useTLDrawContext() const status = useSelector(statusSelector) const activeTool = useSelector(activeToolSelector) return (
- {tlstate.id} | {activeTool} | {status} + {activeTool} | {status}
)