Dropping unplaced units errors

Bug #1323199 reported by Huw Wilkins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-gui
Fix Released
High
Huw Wilkins

Bug Description

Dropping an unplaced unit gives an error, I've traced it back to the following line returning {} instead of the unit:

https://github.com/juju/juju-gui/blob/develop/app/utils/mv-drop-target-view-extension.js#L62

To reproduce:
- drag a service to the canvas
- open the machine view
- drag the unplaced unit to 'create a machine'
- in the javascript console you should see "Cannot read property 'id' of null"

Huw Wilkins (huwshimi)
Changed in juju-gui:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Huw Wilkins (huwshimi)
status: Triaged → In Progress
Revision history for this message
Richard Harding (rharding) wrote :

This appears to be fix committed as the code is changed and I cannot reproduce. Please reopen if this is incorrect.

Changed in juju-gui:
status: In Progress → Fix Committed
Changed in juju-gui:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.