mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
keep element as is unless we support prog api
This commit is contained in:
parent
453aa722eb
commit
e68edb9f73
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue