Skip to content

A self-hosted media server and file management system

chore: code smells

aminnausinb1149ff162b7
diff --git a/resources/js/service/eventBus.ts b/resources/js/service/eventBus.ts
index a4a99fc3..579a1230 100755
--- a/resources/js/service/eventBus.ts
+++ b/resources/js/service/eventBus.ts
@@ -34,7 +34,7 @@ export function EventBus(): EventBusOptions {
const handlers = allHandlers.get(type);
if (handlers) {
- handlers.slice().map((handler) => {
+ handlers.slice().forEach((handler) => {
handler(evt);
});
}