From cd61f5964c15fe9a430397ffc46d8779bfeaa207 Mon Sep 17 00:00:00 2001 From: zsviczian Date: Tue, 10 Sep 2024 18:42:35 +0200 Subject: [PATCH] Update SearchMenu.tsx --- packages/excalidraw/components/SearchMenu.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/excalidraw/components/SearchMenu.tsx b/packages/excalidraw/components/SearchMenu.tsx index 0ddd61582..7d6096e33 100644 --- a/packages/excalidraw/components/SearchMenu.tsx +++ b/packages/excalidraw/components/SearchMenu.tsx @@ -6,7 +6,6 @@ import { useApp, useExcalidrawSetAppState } from "./App"; import { debounce } from "lodash"; import type { AppClassProperties } from "../types"; import { isTextElement, newTextElement } from "../element"; -import type { ExcalidrawTextElement } from "../element/types"; import { measureText } from "../element/textElement"; import { addEventListener, getFontString } from "../utils"; import { KEYS } from "../keys"; @@ -135,7 +134,6 @@ export const SearchMenu = () => { if (match) { const matchAsElement = newTextElement({ text: match.keyword, - rawText: match.keyword, x: match.textElement.x + (match.matchedLines[0]?.offsetX ?? 0), y: match.textElement.y + (match.matchedLines[0]?.offsetY ?? 0), width: match.matchedLines[0]?.width,