Commit 4a015e9d authored by Vignesh Mohankumar's avatar Vignesh Mohankumar Committed by GitHub

fix: ensure event.request is defined in trace (#6498)

* fix: ensure event.request is defined in trace

* add check for empty event
parent c383a0a0
......@@ -86,7 +86,7 @@ function Updater() {
}
function trace(event: any) {
if (event.action !== 'request') return
if (!event?.request) return
const { method, id, params } = event.request
console.groupCollapsed(method, id)
console.debug(params)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment