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}
)