Skip to content

Commit

Permalink
Merge pull request #24 from dittowords/jordin/issue-23-bugfix
Browse files Browse the repository at this point in the history
Fix typos crashing `project add` and `pull` commands
  • Loading branch information
azjgard authored Jan 11, 2022
2 parents 079ce89 + fe1f921 commit 22b6587
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function dedupeProjectName(projectNames, projectName) {
function parseSourceInformation() {
const { projects, components, variants, format } = readData();

const projectNames = {};
const projectNames = new Set();
const validProjects = [];

let componentLibraryInProjects = false;
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/getSelectedProjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function getSelectedProjects(configFile = PROJECT_CONFIG_FILE) {
return [];
}

return contentjson.projects.filter(({ name, id }) => name && id);
return contentJson.projects.filter(({ name, id }) => name && id);
}

module.exports = getSelectedProjects;

0 comments on commit 22b6587

Please sign in to comment.