Skip to content

Commit

Permalink
Merge pull request AutomaApp#1364 from Siykt/fix/js-block
Browse files Browse the repository at this point in the history
Fix: handleConditionCode add check
  • Loading branch information
Kholid060 authored Sep 14, 2023
2 parents f55be7a + 5e42c40 commit f1c27a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sandbox/utils/handleConditionCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ export default function (data) {
script.textContent = `
(async () => {
function automaRefData(keyword, path = '') {
if (!keyword) return null;
if (!path) return ${propertyName}.refData[keyword];
return window.$getNestedProperties(${propertyName}.refData, keyword + '.' + path);
}
Expand Down

0 comments on commit f1c27a8

Please sign in to comment.