mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-09-01 18:35:24 +00:00
Fix handleColorChange when no redo action is recorded (#538)
This commit is contained in:
@@ -231,7 +231,7 @@ function EditPopoverContent({ data }) {
|
||||
e.element === ObjectType.AREA &&
|
||||
e.aid === data.id &&
|
||||
e.action === Action.EDIT &&
|
||||
e.redo.color,
|
||||
e.redo?.color,
|
||||
);
|
||||
if (lastColorChange) {
|
||||
undoColor = lastColorChange.redo.color;
|
||||
|
Reference in New Issue
Block a user