diff --git a/tap/extensions/amqp/helpers.go b/tap/extensions/amqp/helpers.go index 188ae18a1..2c3a8b571 100644 --- a/tap/extensions/amqp/helpers.go +++ b/tap/extensions/amqp/helpers.go @@ -579,12 +579,18 @@ func representConnectionStart(event map[string]interface{}) []interface{} { } func representConnectionClose(event map[string]interface{}) []interface{} { + replyCode := "" + + if event["replyCode"] != nil { + replyCode = fmt.Sprintf("%g", event["replyCode"].(float64)) + } + rep := make([]interface{}, 0) details, _ := json.Marshal([]api.TableData{ { Name: "Reply Code", - Value: fmt.Sprintf("%g", event["replyCode"].(float64)), + Value: replyCode, Selector: `request.replyCode`, }, { diff --git a/ui/src/components/EntriesList.tsx b/ui/src/components/EntriesList.tsx index 14e78bec2..6b3a6917b 100644 --- a/ui/src/components/EntriesList.tsx +++ b/ui/src/components/EntriesList.tsx @@ -66,7 +66,7 @@ export const EntriesList: React.FC = ({entries, setEntries, qu } setIsLoadingTop(true); const data = await api.fetchEntries(leftOffTop, -1, query, 100, 3000); - if (!data || !data.meta) { + if (!data || data.data === null || data.meta === null) { setNoMoreDataTop(true); setIsLoadingTop(false); return;