update api to use label

This commit is contained in:
Aakansha Doshi
2023-05-12 17:19:36 +05:30
parent e465a43f77
commit bc5c58282f
2 changed files with 3 additions and 3 deletions

View File

@@ -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 &&