Skip to content

Commit

Permalink
issue-54 Workflow params validation (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhilt committed Nov 26, 2023
1 parent 0d1dd1a commit 5004ab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inputs/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const onBoolean = (value: unknown): ValidatedValue => {

const onObject = (value: unknown): ValidatedValue => {
const errors = [];
if (!!value && Object.prototype.toString.call(value) !== '[object Object]') {
if (!value || Object.prototype.toString.call(value) !== '[object Object]') {
errors.push(ValidatorType.object);
}
return { value, isSet: true, isValid: !errors.length, errors };
Expand Down

0 comments on commit 5004ab5

Please sign in to comment.