Skip to content

TypeError due to a race condition when deleting a process

Sentry Issue: ARKINDEX-FRONTEND-B65

TypeError: r.Js[this.state] is undefined
  at color (/arkindex/1.5.1/arkindex-1.5.1.js:1:383770)
  at run (/arkindex/1.5.1/arkindex-vendors-1.5.1.js:1:75618)
  at get value (/arkindex/1.5.1/arkindex-vendors-1.5.1.js:1:83853)
  at get (/arkindex/1.5.1/arkindex-vendors-1.5.1.js:1:101248)
  at get (/arkindex/1.5.1/arkindex-vendors-1.5.1.js:1:99334)
...
(17 additional frame(s) were not displayed)

When a process gets deleted, the process state component gets an undefined state instead of a valid process state, causing it to crash. It should use the default fallback state defined in PROCESS_STATE_COLORS instead.

Since the row disappears right after the error occurs, this has no actual impact on users.

Edited by Erwan Rouchet