mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-23 09:21:00 +02:00
update api to use label
This commit is contained in:
@@ -659,7 +659,7 @@ export const convertToExcalidrawElements = (
|
||||
if (!element) {
|
||||
return;
|
||||
}
|
||||
const textElement = element.children?.find((child) => child.text !== null);
|
||||
const textElement = element.label?.find((child) => child.text !== null);
|
||||
if (
|
||||
isValidTextContainer(element) &&
|
||||
textElement &&
|
||||
|
Reference in New Issue
Block a user