Skip to content

Commit

Permalink
fix(models: channelconfig): fix ChannelConfig#setChannel setting map …
Browse files Browse the repository at this point in the history
…w/ undefined property

This fixes double posting when initializing & removing repos, and changing config.
  • Loading branch information
dsevillamartin committed Jul 15, 2017
1 parent 07dc998 commit 35aebc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Models/ChannelConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class ChannelConfig {
new: true,
}, (err) => {
if (err) return reject(err);
this._data.set(newConfig.channel, new ChannelConfigItem(this, newConfig));
this._data.set(channel, new ChannelConfigItem(this, newConfig));
resolve(this);
});
});
Expand Down

0 comments on commit 35aebc7

Please sign in to comment.