KaotoIO/kaoto-ui

Deleting last route from the canvas doesn't get reflected in the code editor

tplevko opened this issue · 2 comments

Describe the Bug

When users delete the route using the delete dropdown - the route sources stay in the code editor.

Steps to Reproduce the Bug or Issue

  1. create a route
  2. specify route steps
  3. delete the route using the dropdown
  4. see the route source remains in the code editor

Screenshots or Videos

Peek 2023-07-03 09-38

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [last]

It might be related to or same root cause with #2077

When a user clicks the route delete button, the frontend is supposed to send an empty Kaoto JSON and get the empty YAML, but it doesn't. Only view-definitions request is observed.