Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
David Montero Crespo 2026-05-11 11:51:03 -03:00 committed by GitHub
parent 47e96a027b
commit 46f615ef69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -2351,7 +2351,8 @@ export const SimulatorCanvas = ({ headerSlot }: SimulatorCanvasProps = {}) => {
label="Wire"
currentColor={wire?.color}
onColorChange={(color) => {
updateWire(selectedWireId, { color });
if (!wire) return;
recordUpdateWire(selectedWireId, { color: wire.color }, { color });
}}
onDelete={() => {
// Recorded so the touch / mobile delete is also undoable.