Skip to content

Commit

Permalink
Merge pull request #173 from fty4/fix/input-defaults
Browse files Browse the repository at this point in the history
only set input values if not empty
  • Loading branch information
Jamie-BitFlight authored Aug 12, 2022
2 parents 3835dec + 9dd0724 commit 7a9e554
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ export default class Inputs {
newObj.key = keyParsed;
break;
}
this.config.set(newObj.key, newObj.value);
if (newObj.value) {
this.config.set(newObj.key, newObj.value);
}
return newObj;
}
return undefined;
Expand Down

0 comments on commit 7a9e554

Please sign in to comment.