diff --git a/flow-server/src/main/resources/com/vaadin/flow/server/frontend/Flow.tsx b/flow-server/src/main/resources/com/vaadin/flow/server/frontend/Flow.tsx index f6bfe9f35a2..776e58910ca 100644 --- a/flow-server/src/main/resources/com/vaadin/flow/server/frontend/Flow.tsx +++ b/flow-server/src/main/resources/com/vaadin/flow/server/frontend/Flow.tsx @@ -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]; }