frg-fossee / eSim-Cloud

A web-based system for designing and simulating electronic (eSim) and Arduino circuits.

Home Page:https://esim-cloud.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deleting a wire sometimes deletes other component's wire too on breadboard

ikartikgautam opened this issue · comments

Description: In some circuits when we delete any wire, then other component's wire too get deleted

TESTED ON CIRCUIT:
Screenshot 2021-07-01 at 8 28 10 AM

WIRE DELETED:
Screenshot 2021-07-01 at 8 28 10 AM

EFFECT ON LED's WIRE:
Screenshot 2021-07-01 at 8 26 59 AM

REASON:
I did a bit of debugging and encountered an issue, which I think is the reason for it.
Actually when the circuit is being created then two wires get the same id. Due to this reason when one wire with same id is deleted then another wire too gets deleted partially.(See pictures below)
Screenshot 2021-07-01 at 8 24 49 AM
In the above image, you can observe that id of two wires is same whereas the end and start nodes are different and has nothing to do with each other.

Tested on: Live website & develop branch
OS: macOS

Fixed in #303