This is an automated email from the ASF dual-hosted git repository.

jbertram pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis-console.git

commit e6e56ce546312309f8e5482ef8233cbd7aba683c
Author: Andy Taylor <[email protected]>
AuthorDate: Mon May 12 18:08:48 2025 +0100

    ARTEMIS-5393 - Provide meaningful feedback w/invalid filter when browsing 
messages
---
 .../artemis-console-plugin/src/messages/MessagesTable.tsx    | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git 
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/messages/MessagesTable.tsx
 
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/messages/MessagesTable.tsx
index 9b0b517..8026ee8 100644
--- 
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/messages/MessagesTable.tsx
+++ 
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/messages/MessagesTable.tsx
@@ -82,9 +82,17 @@ export const MessagesTable: 
React.FunctionComponent<MessageProps> = props => {
 
   useEffect(() => {
     const listData = async () => {
+      listMessages().then((data) => {
+        setRows(data.data);
+        setresultsSize(data.count);
+      }).catch((error: string) => {
+        eventService.notify({
+          type: 'warning',
+          message: error,
+        })
+      })
       var data = await listMessages();
-      setRows(data.data);
-      setresultsSize(data.count);
+      
     }
     const listMessages = async (): Promise<any> => {
       const brokerObjectname = await artemisService.getBrokerObjectName();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to