This commit is contained in:
Aakansha Doshi 2023-07-14 20:37:53 +05:30
parent 7a94ee3191
commit d994f72c40
5 changed files with 15 additions and 9 deletions

View file

@ -322,9 +322,8 @@ const ExcalidrawWrapper = () => {
});
}
} else {
const sceneElements = data.scene.elements;
const fileIds =
sceneElements?.reduce((acc, element) => {
data.scene.elements?.reduce((acc, element) => {
if (isInitializedImageElement(element)) {
return acc.concat(element.fileId);
}