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,10 +2189,8 @@ class App extends React.Component<{}, AppState> {
|
||||||
100
|
100
|
||||||
);
|
);
|
||||||
|
|
||||||
if (isTextElement(element)) {
|
if (!addTextElement(element as ExcalidrawTextElement)) {
|
||||||
if (!addTextElement(element)) {
|
return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
generateDraw(element);
|
generateDraw(element);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue