Skip to content

Commit 0e410cf

Browse files
committed
Fix the "map values transpilation" bug, in yet another place
Same issue as 1ddda6c , again - gotta convert to an array first
1 parent 5492281 commit 0e410cf

File tree

1 file changed

+1
-1
lines changed
  • packages/toolkit/src/listenerMiddleware

1 file changed

+1
-1
lines changed

packages/toolkit/src/listenerMiddleware/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ export function createListenerMiddleware<
317317
const findListenerEntry = (
318318
comparator: (entry: ListenerEntry) => boolean
319319
): ListenerEntry | undefined => {
320-
for (const entry of listenerMap.values()) {
320+
for (const entry of Array.from(listenerMap.values())) {
321321
if (comparator(entry)) {
322322
return entry
323323
}

0 commit comments

Comments
 (0)