No idea why that would be but it would typically point to a more fundamental problem. The view parameters aren't typically accessible via
$xf.reply.viewParams
. Otherwise you might try dumping the objects to ensure they're what you'd expect them to be:
HTML:
{{ dump($resource) }}
{{ dump($resource.Category) }}