-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: disable removing from data if the evaluated result is undefined
static-eval returns undefined on evaluation if an error occurred, but also sometimes we may expect undefined as the result so this is not reliable
- Loading branch information
Showing
3 changed files
with
75 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"templateMeta": { | ||
"name": "an-example-form", | ||
"title": "An example form", | ||
"category": "prevention" | ||
}, | ||
"type": "AdaptiveCard", | ||
"body": [ | ||
{ | ||
"type": "Container", | ||
"showWhen": "data.colours.find(e => e === 'blue')", | ||
"items": [ | ||
{ | ||
"id": "number", | ||
"title": "Enter a number", | ||
"type": "Input.Number" | ||
} | ||
] | ||
} | ||
], | ||
"actions": [ | ||
{ | ||
"type": "Action.Submit", | ||
"title": "Submit" | ||
} | ||
], | ||
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json", | ||
"version": "1.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters