From 8ba7b0727a3ad8673b0ff467c2925ab7ef8b4524 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 13 Feb 2023 17:54:30 +0000 Subject: [PATCH] DEV: Make assigned-topic-list a real component (#442) Re-exporting the TopicList component as-is leads to unexpected behavior when colocating templates because `AssignedTopicList` === `TopicList`. Extending it gives the component its own identity. --- assets/javascripts/discourse/components/assigned-topic-list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/discourse/components/assigned-topic-list.js b/assets/javascripts/discourse/components/assigned-topic-list.js index 0bbb097..057566b 100644 --- a/assets/javascripts/discourse/components/assigned-topic-list.js +++ b/assets/javascripts/discourse/components/assigned-topic-list.js @@ -1,3 +1,3 @@ import TopicList from "discourse/components/topic-list"; -export default TopicList; +export default class AssignedTopicList extends TopicList {}