diff --git a/src/devhub/entity/post/List.jsx b/src/devhub/entity/post/List.jsx index 40c1db12e..cece362dd 100644 --- a/src/devhub/entity/post/List.jsx +++ b/src/devhub/entity/post/List.jsx @@ -164,6 +164,9 @@ function defaultRenderItem(postId, additionalProps) { ...additionalProps, referral: postId, updateTagInParent: (tag) => { + if (typeof props.updateTagInput === "function") { + props.updateTagInput(tag); + } getPostIds(tag); }, }} diff --git a/src/devhub/entity/post/Post.jsx b/src/devhub/entity/post/Post.jsx index 068e43906..1f988fd29 100644 --- a/src/devhub/entity/post/Post.jsx +++ b/src/devhub/entity/post/Post.jsx @@ -652,7 +652,9 @@ const tags = post.snapshot.labels ? ( >
{ - props.updateTagInParent(tag); + if (typeof props.updateTagInParent === "function") { + props.updateTagInParent(tag); + } }} className="d-flex gap-3 align-items-center" style={{ cursor: "pointer", textDecoration: "none" }} diff --git a/src/devhub/feature/post-search/panel.jsx b/src/devhub/feature/post-search/panel.jsx index 40faf428e..f6e6da59a 100644 --- a/src/devhub/feature/post-search/panel.jsx +++ b/src/devhub/feature/post-search/panel.jsx @@ -147,6 +147,7 @@ return ( term: state.term, recency: props.recency, transactionHashes: props.transactionHashes, + updateTagInput: (tag) => State.update({ tag }), }} />