Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Hotfix - guard against non-defined entries when ordering chainedmap
Browse files Browse the repository at this point in the history
  • Loading branch information
eliperelman committed Oct 10, 2017
1 parent a71fc4b commit 76be81f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ChainedMap.js
Expand Up @@ -34,6 +34,10 @@ module.exports = class extends Chainable {
const order = [...names];

names.forEach(name => {
if (!entries[name]) {
return;
}

const { __before, __after } = entries[name];

if (__before && order.includes(__before)) {
Expand Down

0 comments on commit 76be81f

Please sign in to comment.