Commit 379c207
committed
fix(plugins-sdk): compare generic content items by their id
Currently, the diff function is comparing all the object to decide when to add/remove new generic content items,
this has problems when the same generic content (same id) is set by a plugin, causing it to be added and removed wrongly.
This fixes it by comparing the items by their id to decide when to add/remove.1 parent a49489c commit 379c207
1 file changed
Lines changed: 6 additions & 4 deletions
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
0 commit comments