I think what's going on is that we don't set the currentswitcher storage value when a user updates the list of switchers in the settings — so if the current switcher index is greater than the new length, accessing the (non-existent) value at that index returns undefined.
I think what's going on is that we don't set the
currentswitcher
storage value when a user updates the list of switchers in the settings — so if the current switcher index is greater than the new length, accessing the (non-existent) value at that index returnsundefined
.