diff --git a/public/src/client/category/tools.js b/public/src/client/category/tools.js index 7159466f6a..74e7111f7f 100644 --- a/public/src/client/category/tools.js +++ b/public/src/client/category/tools.js @@ -263,7 +263,7 @@ define('forum/category/tools', [ } function handlePinnedTopicSort() { - if (!ajaxify.data.topics) { + if (!ajaxify.data.topics || !ajaxify.data.template.category) { return; } var numPinned = ajaxify.data.topics.reduce(function (memo, topic) {