# 📄 Copy Post Component

**URL:** <https://meta.discourse.org/t/copy-post-component/218883>\
**Category:** Theme component\
**Tags:** official, copy-post\
**Created:** [February 20, 2022, 3:51pm UTC](https://meta.discourse.org/t/copy-post-component/218883 "2022-02-20T15:51:40Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [March 17, 2025, 8:22pm UTC](https://meta.discourse.org/t/copy-post-component/218883/27 "2025-03-17T20:22:23Z")

</div>

I noticed an error on a site using the component as anonymous:

 ![The image shows a JavaScript error message indicating that a property cannot be read from a null object in a code snippet containing various object and array methods such as , , , , , , , and . (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/0/b/4/0b43d051d7c6c7693da14523c13f59d9583f2156.png)

I made a PR to fix it:

[https://github.com/discourse/discourse-copy-post/pull/14](https://github.com/discourse/discourse-copy-post/pull/14)

---

_[View the full topic](https://meta.discourse.org/t/copy-post-component/218883)._
