Skip to content

Document popup text content does not update when field is empty #1990

@lukavdplas

Description

@lukavdplas

What went wrong?

In the document popup in the search results, if the main content field for a document is empty, the popup will show the text of the previous document viewed. (If there was one and it had text content.)

What did you expect to happen?

The view should not show the content of other documents, of course. In this case, the content tab should be empty.

Screenshot

screenshot of document popup in textcavator

Where did you find the bug?

Version

5.26.0

Steps to reproduce

This bugs happens when you do the following:

  • Open the search view for a corpus where the content field is sometimes empty. For instance, this page in DBNL: https://textcavator.hum.uu.nl/search/dbnl?sort=year,asc&p=4
  • Use "view" for a document that has text content and close the popup.
  • Use "view" for a document where the content field is empty.

The content tab will now show the text of the previous document.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething isn't working rightfrontendchanges to the angular frontend

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions