-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix for conditional automation step options always showing #14968
fix for conditional automation step options always showing #14968
Conversation
QA Wolf here! As you write new code it's important that your test coverage is keeping up. |
@@ -865,7 +865,7 @@ | |||
<!-- Custom Layouts --> | |||
{#if stepLayouts[block.stepId]} | |||
{#each Object.keys(stepLayouts[block.stepId] || {}) as key} | |||
{#if canShowField(key, stepLayouts[block.stepId].schema)} | |||
{#if canShowField(stepLayouts[block.stepId].schema)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function canShowField(value) {
const dependsOn = value?.dependsOn
return !dependsOn || !!inputData[dependsOn]
}
this function used to have key and value parameters but key was removed, meaning all cases where this was being called with two arguments were broken
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Nice catch!
…ons-always-rendering-send
…ons-always-rendering-send
…ndering-send' of github.com:Budibase/budibase into budi-8820-conditional-automation-step-options-always-rendering-send
Description
Automation step options that should conditionally render based on other settings are currently always showing. I think the only place this is used is the send email automation step where calendar invite options should be shown only when Add calendar invite is checked.
Addresses
BUDI-8820
Screenshots
before
after
Launchcontrol
fix for send email automation step settings