bugfix load context info of fields (#390)

pull/3759/head
Leonel Matos 2020-03-11 21:33:31 -04:00 committed by GitHub
parent a589941a30
commit b2c5f894ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -531,7 +531,7 @@ const panel = {
})
// request context info field
if (!isEmptyValue(field.value) && !isEmptyValue(field.contextInfo) && !isEmptyValue(field.contextInfo.sqlStatement)) {
if ((!isEmptyValue(field.value) || !isEmptyValue(newValue)) && !isEmptyValue(field.contextInfo) && !isEmptyValue(field.contextInfo.sqlStatement)) {
var isSQL = false
var sqlStatement = field.contextInfo.sqlStatement
if (sqlStatement.includes('@')) {