FIX: prevents self-reference to discoveryTopics from discoveryTopics (#16114)

This commit is contained in:
Joffrey JAFFEUX 2022-03-07 09:27:19 +01:00 committed by GitHub
parent 6b8c622762
commit 36e7163d16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -15,14 +15,13 @@ import { action } from "@ember/object";
const controllerOpts = {
discovery: controller(),
discoveryTopics: controller("discovery/topics"),
router: service(),
period: null,
canCreateTopicOnCategory: null,
canStar: alias("currentUser.id"),
showTopicPostBadges: not("discoveryTopics.new"),
showTopicPostBadges: not("new"),
redirectedReason: alias("currentUser.redirected_to_top.reason"),
expandGloballyPinned: false,