edit text when clicked on with text tool (#1283)
This commit is contained in:
@ -5,9 +5,9 @@ import {
|
||||
} from "./types";
|
||||
|
||||
export function isTextElement(
|
||||
element: ExcalidrawElement,
|
||||
element: ExcalidrawElement | null,
|
||||
): element is ExcalidrawTextElement {
|
||||
return element.type === "text";
|
||||
return element != null && element.type === "text";
|
||||
}
|
||||
|
||||
export function isLinearElement(
|
||||
|
Reference in New Issue
Block a user