Skip to content

TypeError when deleting a process from the process list

Sentry Issue: ARKINDEX-FRONTEND-C4Z

TypeError: Cannot read properties of undefined (reading 'name')
  at _sfc_main$1.computed.deleteModalText (../../src/components/Process/Row.vue:248:25)
...
(1 additional frame(s) were not displayed)
  1. View the process list
  2. On any process, click Delete
  3. Get one or more TypeError logs in the dev tools

Those errors occur on the component responsible for displaying one row per process. The process gets deleted by the API, then deleted from the process store either before the process list can be refreshed from the API or before the process list view reacts and updates itself. This causes a process ID to not be associated with any process, so the row gets undefined as its process and explodes just before it can removed properly.

Those errors are not that important since the component gets destroyed almost immediately afterwards, but they pollute Sentry and teach us an important lesson on passing UUIDs as parameters instead of objects.