I stumbled on this issue when refactoring a functionality to return an object in place of an array, but I forgot to update the return value inside the if assertion. grepitgrepit 22.5k66 gold badges109109 silver badges8282 bronze badges 1 Does The category identify should be same as the root element https://plotsinsohna.in/