threat-dragon
threat-dragon copied to clipboard
New threat by type/context throws error on edges
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:
- Create a new Diagram
- Add a trust boundary curve
- Select the edge (tb curve)
- Click either "New Threat By Type" or "New Threat By Context"
- Attempt to save
- Threat is not saved, and there are errors in the console
Any additional context, screenshots, etc: