Skip to content

Commit

Permalink
fix: dont allow sorting pinned topics on recent
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Oct 5, 2020
1 parent 3c7f79c commit b955fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/src/client/category/tools.js
Expand Up @@ -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) {
Expand Down

0 comments on commit b955fd3

Please sign in to comment.