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:
parent
47e96a027b
commit
46f615ef69
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue