Ensure current document is passed into block statements
This commit is contained in:
parent
c9e98b0a52
commit
0589465095
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ impl Block {
|
||||||
// Check if the variable is a protected variable
|
// Check if the variable is a protected variable
|
||||||
let val = match PROTECTED_PARAM_NAMES.contains(&v.name.as_str()) {
|
let val = match PROTECTED_PARAM_NAMES.contains(&v.name.as_str()) {
|
||||||
// The variable isn't protected and can be stored
|
// The variable isn't protected and can be stored
|
||||||
false => v.compute(&ctx, opt, txn, None).await,
|
false => v.compute(&ctx, opt, txn, doc).await,
|
||||||
// The user tried to set a protected variable
|
// The user tried to set a protected variable
|
||||||
true => {
|
true => {
|
||||||
return Err(Error::InvalidParam {
|
return Err(Error::InvalidParam {
|
||||||
|
|
Loading…
Reference in a new issue