keep element as is unless we support prog api

This commit is contained in:
Aakansha Doshi 2023-05-18 15:20:26 +05:30
parent 453aa722eb
commit e68edb9f73

View file

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