Skip to content

[MessageView]: [Navigation dissapears when active category becomes empty and the other is not] #8707

@alexanderfcd

Description

@alexanderfcd

Describe the bug

If you have, for example, an array of messages, and you render them with MesasgeView -> MessageItem. In this array you have 1 item of type "Information" and 1 "Negative". When it is rendered, you click on the category information. Then, at some point, your app removes the "Information" item and the navigation dissapears, and you can't access other messages.

Isolated Example

https://stackblitz.com/edit/github-skuqdhwg

Reproduction steps

1.Create an array, by using useState hook, with 2 items - one with type "Information" and second with type "Negative".
2.Render the array with MessageView
3. In the MessageView open Information tab
4. Remove array item with type "Information"
...

Expected Behaviour

Navigation must switch to "All"

Screenshots or Videos

No response

UI5 Web Components for React Version

2,19,0

UI5 Web Components Version

2,19,2

Browser

Chrome

Operating System

No response

Additional Context

No response

Relevant log output

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions