mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-23 17:30:44 +02:00
keep element as is unless we support prog api
This commit is contained in:
@@ -664,10 +664,12 @@ export const convertToExcalidrawElements = (
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
elements.forEach((element) => {
|
elements.forEach((element) => {
|
||||||
if (
|
if (!element) {
|
||||||
!element ||
|
return;
|
||||||
!ELEMENTS_SUPPORTING_PROGRAMMATIC_API.includes(element.type)
|
}
|
||||||
) {
|
if (!ELEMENTS_SUPPORTING_PROGRAMMATIC_API.includes(element.type)) {
|
||||||
|
//@ts-ignore
|
||||||
|
res.push(element);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
|
Reference in New Issue
Block a user