We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f66873 commit c33ff38Copy full SHA for c33ff38
lib/mcapi/fle/field-level-encryption.js
@@ -134,7 +134,7 @@ function decrypt(response) {
134
*/
135
function encryptBody(path, body) {
136
let elem = elemFromPath(path.element, body);
137
- if (elem){
+ if (elem && elem.node){
138
let encryptedData = this.crypto.encryptData({data: elem.node});
139
utils.mutateObjectProperty(path.obj,
140
encryptedData,
0 commit comments