salah-rashad/blueprint_system

Transferring a DraggableNode from a Blueprint to another.

salah-rashad opened this issue · 0 comments

Issue: DraggableNode not transferring properly

When attempting to drag and drop a DraggableNode from one Blueprint to another, the node is duplicated in the second Blueprint with the same values but a different ID. However, removing the original DraggableNode from the first Blueprint could result in permanent loss of the node if the transfer operation fails.

Proposed Solution

A better solution would be to implement a check to ensure the transfer operation was successful before removing the original DraggableNode from the first Blueprint. This way, if the transfer fails, the original node is still available.

Steps to Reproduce

  1. Drag and drop a DraggableNode from one Blueprint to another.
  2. Attempt to remove the original DraggableNode from the first Blueprint before confirming that the transfer was successful.
  3. Verify that the node has been lost in both Blueprints.

Expected Result

The DraggableNode should be successfully transferred to the second Blueprint, and the original node should be removed from the first Blueprint only after confirming the transfer was successful.

Actual Result

Removing the original DraggableNode before confirming the transfer results in permanent loss of the node in both Blueprints.