Skip to content

Commit

Permalink
Array Check for Bug dyatko#28
Browse files Browse the repository at this point in the history
  • Loading branch information
jmotacek-ffc committed Mar 2, 2021
1 parent 7c3b07a commit 862e07f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class Generator {
resolveConflictingComponentNames(components) {
const componentsByName = {};
for (const component of components.values()) {
componentsByName[component.name] = componentsByName[component.name] || [];
componentsByName[component.name] = Array.isArray(componentsByName[component.name]) || [];
componentsByName[component.name].push(component);
}
for (const name in componentsByName) {
Expand Down

0 comments on commit 862e07f

Please sign in to comment.