When we have a list with a group by a choice field view, and we changed the values we might cause a little problem. After changing the values in that field, the view will show us the values in the headers, but when clicking on them it will display: “Loading…” for two seconds and will disappear without showing any items below.
The problem is when changing the values in that field, we need to change the values in the items as well.
The script searches in the list/library the exact value. If it has been changed from “1234” to “12345” it will not be a problem. But if it has been changed from “1234” to “1245”, or “12 34” or “12-34” or any other change within the value and not before or after it will cause a problem.