threat-dragon icon indicating copy to clipboard operation
threat-dragon copied to clipboard

New threat by type/context throws error on edges

Open lreading opened this issue 4 months ago • 3 comments

Describe the bug: New threat by type and new threat by context throw an error when using them on an edge. The new threat button is disabled, so I suspect this is an unintended workflow.

Expected behaviour: Should we disable these buttons when the "New Threat" button is disabled? I'm not sure how this is used.

Environment:

  • Version: 2.2.0-latest
  • Platform: Web App
  • OS: Ubuntu 24.04
  • Browser: Vivaldi (chromium based)

To Reproduce:

  1. Create a new Diagram
  2. Add a trust boundary curve
  3. Select the edge (tb curve)
  4. Click either "New Threat By Type" or "New Threat By Context"
  5. Attempt to save
  6. Threat is not saved, and there are errors in the console

image

Any additional context, screenshots, etc:

lreading avatar Oct 11 '24 14:10 lreading