mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Cast element to text element
This commit is contained in:
parent
8c2a7bdbcb
commit
ac3b07cb1d
1 changed files with 2 additions and 4 deletions
|
@ -2189,11 +2189,9 @@ class App extends React.Component<{}, AppState> {
|
|||
100
|
||||
);
|
||||
|
||||
if (isTextElement(element)) {
|
||||
if (!addTextElement(element)) {
|
||||
if (!addTextElement(element as ExcalidrawTextElement)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
generateDraw(element);
|
||||
elements.push(element);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue