Closed KCarlile closed 2 months ago
The array.reverse()
function returns a reversed array, but it also mutates the original array. This was causing the this.#config.stringNames
to be reversed unexpectedly. Using the deep copy method to clone the array solved the issue: let stringNames = [...this.#config.stringNames]; // deep copy array
PR into develop
: #47
Background
Toggling the orientation button results in the string names reversing under some circumstances. Toggle back and forth to see this bug appear. This happens on the examples page and the testing page.
Acceptance Criteria
Approach
Notes
This is related to #36