fix: Prevent overriding the ring with empty value
Apparently changing it to an enum field introduced a bug when an empty value from revision would overwrite actual value from the item itself.
This commit is contained in:
@@ -141,6 +141,7 @@ const addRevisionToItem = (
|
||||
let newItem: Item = {
|
||||
...item,
|
||||
...revision,
|
||||
ring: revision.ring ? revision.ring : item.ring, // prevent empty revision ring overriding the one from the item. This one field is special as it's an enum.
|
||||
body: ignoreEmptyRevisionBody(revision, item),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user