Fix broken "Show whitespace changes" button on MR "Changes" tab
All threads resolved!
All threads resolved!
Compare changes
@@ -100,20 +100,26 @@ describe('CompareVersions', () => {
This MR fixes the issue where the Show/Hide whitespace changes button was getting stuck in the Show whitespace changes state once it has been toggled.
The problem was that the w=0
parameter in the URL was getting handled as if it was an integer flag. Since url params are always strings the flag will always result in true
regardless of the value.
This MR fixes the issue by converting the w
flag to an integer when it is read out.
Tests for the component has also been added.
Closes #52122 (closed)