Support bindings in User field for automations (#12704)

This commit is contained in:
melohagan 2024-01-04 13:02:28 +00:00 committed by GitHub
parent 9f7b84c07a
commit afd1db4fb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -44,7 +44,11 @@
}) })
const onChange = value => { const onChange = value => {
if (type === "link" && value && hasValidLinks(value)) { if (
(type === "link" || type === "bb_reference") &&
value &&
hasValidLinks(value)
) {
currentVal = value.split(",") currentVal = value.split(",")
} else if (type === "array" && value && hasValidOptions(value)) { } else if (type === "array" && value && hasValidOptions(value)) {
currentVal = value.split(",") currentVal = value.split(",")
@ -95,6 +99,7 @@
date: isValidDate, date: isValidDate,
datetime: isValidDate, datetime: isValidDate,
link: hasValidLinks, link: hasValidLinks,
bb_reference: hasValidLinks,
array: hasValidOptions, array: hasValidOptions,
longform: value => !isJSBinding(value), longform: value => !isJSBinding(value),
json: value => !isJSBinding(value), json: value => !isJSBinding(value),