Skip to content

Commit

Permalink
fix: default value for Input.DateTime
Browse files Browse the repository at this point in the history
  • Loading branch information
meenahoda committed Aug 16, 2022
1 parent 1515128 commit 5d39c8d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ module.exports = async function extractDefaults (cardscript) {

cardListPath.pop()

break
case 'Input.DateTime':
if (defaultValue !== undefined) {
applyDefaultValue(defaultValues, defaultValue === '$TODAY' ? new Date() : defaultValue, apiLookupPath, cardListPath, element.id)
}

break
case 'Input.Date':
if (defaultValue !== undefined) {
Expand Down

0 comments on commit 5d39c8d

Please sign in to comment.