Skip to content

Commit

Permalink
fix: return empty list (#19098)
Browse files Browse the repository at this point in the history
Return an empty list if no
listeners for type exist.

Fixes #19073
  • Loading branch information
caalador committed Apr 4, 2024
1 parent af1e9a7 commit 73ddf02
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -373,6 +373,8 @@ export const serverSideRoutes = [
if (!eventListenerList) return [];
if (type == undefined) return eventListenerList;
// @ts-ignore
if(eventListenerList[type] == undefined) return [];
// @ts-ignore
return eventListenerList[type];
}

Expand Down

0 comments on commit 73ddf02

Please sign in to comment.