Skip to content

Handle missing neighbor data when switching to another element

Erwan Rouchet requested to merge header-actions-nullish-neighbors into master

Closes #879 (closed)

It seems this was a rare race condition in which only a portion of an if statement got evaluated before the Vuex store changed, causing the rest of the if to still cause a TypeError. JS is incredibly unreliable. This switches to a null-ish operator, which hopefully should be executed in one go and not broken up by some async code.

Edited by Erwan Rouchet

Merge request reports

Loading