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