Skip to content

Commit

Permalink
fix(index): add check for driverName in sinkProxies
Browse files Browse the repository at this point in the history
The for-loop previously used had an if statement which
checked if driverName was also a key of sinkProxies.
Add that check back.
  • Loading branch information
TylorS committed Dec 21, 2015
1 parent 4884b08 commit aa886bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const logErrorToConsole = err => {
const replicateMany = (sinks, sinkProxies) =>
setTimeout(() => {
Object.keys(sinks)
.filter(driverName => sinkProxies[driverName])
.forEach(driverName => {
sinks[driverName]
.forEach(sinkProxies[driverName].sink.add)
Expand Down

0 comments on commit aa886bd

Please sign in to comment.