|
@@ -47,7 +47,8 @@ const DiscussionTopicChildrenWidget = ({
|
|
|
const [items, setItems] = useState<IItem[]>();
|
|
const [items, setItems] = useState<IItem[]>();
|
|
|
const [currTopic, setCurrTopic] = useState(topic);
|
|
const [currTopic, setCurrTopic] = useState(topic);
|
|
|
|
|
|
|
|
- console.log("topicId", topicId);
|
|
|
|
|
|
|
+ useEffect(() => setCurrTopic(topic), [topic]);
|
|
|
|
|
+
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
if (loading === false) {
|
|
if (loading === false) {
|
|
|
const ele = document.getElementById(`answer-${focus}`);
|
|
const ele = document.getElementById(`answer-${focus}`);
|