Skip to content

Commit 92baa17

Browse files
committed
handle missing operation id when undo is unsafe
1 parent ae4fca9 commit 92baa17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/scenarios/fixtures.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,10 @@ fn build_undo(
863863
world.api_name.clone().unwrap()
864864
};
865865

866+
if undo.get("operationId").is_none() {
867+
return Ok(None);
868+
}
869+
866870
let mut undo_operation = UndoOperation {
867871
operation_id: undo
868872
.get("operationId")

0 commit comments

Comments
 (0)