mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -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 [];
|
||||
}
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue