mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 22:59:11 +03:00
fixed reference error for undefined returns for latest message counts
This commit is contained in:
1 parent
718cf57e02
commit
e2770cfbce
1 file changed
+1
-1
@@ -55,7 +55,7 @@ export const LogPage = () => {
|
||||
} = useSWR<{ data: [CountData] | [], error?: any }>(countKey, get, {
|
||||
refreshInterval: 5000
|
||||
})
|
||||
const newCount = countData?.data[0]?.count
|
||||
const newCount = countData?.data?.[0]?.count
|
||||
const { data: logData, error } = data || {}
|
||||
|
||||
const handleRefresh = () => {
|
||||
|
||||
Reference in new issue
Block a user