refactor(edges): compatible with immutable libs closes #2170

This commit is contained in:
moklick
2022-05-26 18:58:57 +02:00
parent b6eb0acb30
commit ea6247f4a1
2 changed files with 2 additions and 8 deletions
-1
View File
@@ -49,7 +49,6 @@ function applyChanges(changes: any[], elements: any[]): any[] {
if (changes.some((c) => c.type === 'reset')) {
return changes.filter((c) => c.type === 'reset').map((c) => c.item);
}
console.log(changes);
const initElements: any[] = changes.filter((c) => c.type === 'add').map((c) => c.item);
return elements.reduce((res: any[], item: any) => {