# Sidebar "roam buffer" gets replaced with org-roam node instead of updating

**URL:** <https://org-roam.discourse.group/t/sidebar-roam-buffer-gets-replaced-with-org-roam-node-instead-of-updating/2162>\
**Category:** Troubleshooting\
**Created:** [October 31, 2021, 6:33pm UTC](https://org-roam.discourse.group/t/sidebar-roam-buffer-gets-replaced-with-org-roam-node-instead-of-updating/2162 "2021-10-31T18:33:27Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![roi.holtzman](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@roi.holtzman](https://org-roam.discourse.group/u/roi.holtzman)\
**Post date:** [November 21, 2021, 1:14pm UTC](https://org-roam.discourse.group/t/sidebar-roam-buffer-gets-replaced-with-org-roam-node-instead-of-updating/2162/21 "2021-11-21T13:14:44Z")

</div>

I upgraded the doom distribution I have, and it works great!

But, I now have my org-roam-buffer showing the entire note under the title, including also the metadata (like #+created:…). Do you know what could be the issue?

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [November 21, 2021, 2:55pm UTC](https://org-roam.discourse.group/t/sidebar-roam-buffer-gets-replaced-with-org-roam-node-instead-of-updating/2162/22 "2021-11-21T14:55:01Z")

</div>

I think it’s this [roam-buffer shows full content of backlinks/reflinks · Issue #1934 · org-roam/org-roam · GitHub](https://github.com/org-roam/org-roam/issues/1934)

Read from the bottom of the thread. I think the workaround code needs to be corrected.

---

<div class="post-metadata">

**Author:** ![roi.holtzman](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@roi.holtzman](https://org-roam.discourse.group/u/roi.holtzman)\
**Post date:** [November 21, 2021, 3:41pm UTC](https://org-roam.discourse.group/t/sidebar-roam-buffer-gets-replaced-with-org-roam-node-instead-of-updating/2162/23 "2021-11-21T15:41:05Z")

</div>

Thanks for that link, but I could not understand how to fix it from the correspondence.  
I tried this code by Jethro

```auto
(defun org-roam-preview-get-contents (file pt)
  "Get preview content for FILE at PT."
  (save-excursion
    (org-roam-with-temp-buffer file
      (org-with-wide-buffer
       (goto-char pt)
       (let ((elem (org-element-context)))
         ;; TODO: alt handling for non-paragraph elements
         (buffer-substring-no-properties
          (org-element-property :begin elem)
          (org-element-property :begin end)))))))

```

but I got an empty org-roam-buffer.

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [November 21, 2021, 3:46pm UTC](https://org-roam.discourse.group/t/sidebar-roam-buffer-gets-replaced-with-org-roam-node-instead-of-updating/2162/24 "2021-11-21T15:46:29Z")

</div>

That’s what I am saying. The code needs correction. Can’t do much now; out and about on a iPhone. In the mean time, someone else can jump in to support.

---

<div class="post-metadata">

**Author:** ![roi.holtzman](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@roi.holtzman](https://org-roam.discourse.group/u/roi.holtzman)\
**Post date:** [November 21, 2021, 3:49pm UTC](https://org-roam.discourse.group/t/sidebar-roam-buffer-gets-replaced-with-org-roam-node-instead-of-updating/2162/25 "2021-11-21T15:49:19Z")

</div>

Ooops, sorry, I missed the comment that it needs to be corrected. I put a comment in the github saying it does not work.  
Thanks!

---

<div class="post-metadata">

**Author:** ![albigujn](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@albigujn](https://org-roam.discourse.group/u/albigujn)\
**Post date:** [October 15, 2022, 8:12am UTC](https://org-roam.discourse.group/t/sidebar-roam-buffer-gets-replaced-with-org-roam-node-instead-of-updating/2162/26 "2022-10-15T08:12:16Z")

</div>

I’m also having issues with the sidebar example in the manual not working. Were there any solutions found for this?

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [October 15, 2022, 4:49pm UTC](https://org-roam.discourse.group/t/sidebar-roam-buffer-gets-replaced-with-org-roam-node-instead-of-updating/2162/27 "2022-10-15T16:49:39Z")

</div>

This thread is long and old, and seems to include multiple issues. It’s probably best to explain what your issue is again. Also if you use Doom or not is usually a factor. For example, Doom has its own way to control “pop up” windows.

[Previous page](https://org-roam.discourse.group/t/sidebar-roam-buffer-gets-replaced-with-org-roam-node-instead-of-updating/2162.md?page=1)
