Fix oversight in last commit

This commit is contained in:
Raymond Hill 2023-05-29 14:54:13 -04:00
parent 9f5697c047
commit a1a3477b07
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 4 additions and 1 deletions

View File

@ -1058,7 +1058,10 @@ function evaldataPrune(
try {
data = JSON.parse(dataToEval);
if ( typeof data === 'object' ) {
args[0] = objectPrune(dataToEval, rawPrunePaths, rawNeedlePaths);
let after = JSON.stringify(
objectPrune(data, rawPrunePaths, rawNeedlePaths)
);
args[0] = `(${after})`;
}
} catch(ex) {
}