Fix group filtering in revertProperties

This commit is contained in:
kkapsner 2020-01-25 10:04:54 +01:00
parent 8bfaf63a99
commit 3d881d3c7d
1 changed files with 4 additions and 4 deletions

View File

@ -155,12 +155,12 @@
return;
}
if (group){
const remainingProperties = changedProperties.filter(function({group}){
return group !== group;
const remainingProperties = changedProperties.filter(function(changedProperty){
return changedProperty.group !== group;
});
changedPropertiesByWindow.set(window, remainingProperties);
changedProperties = changedProperties.filter(function({group}){
return group === group;
changedProperties = changedProperties.filter(function(changedProperty){
return changedProperty.group === group;
});
}
else {