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 e723faa commit 4535f38Copy full SHA for 4535f38
packages/form-js-viewer/src/render/components/form-fields/JSFunctionField.js
@@ -1,4 +1,4 @@
1
-import Sandbox from 'websandbox';
+import Sandbox from '@jetbrains/websandbox';
2
import { useCallback, useEffect, useState } from 'preact/hooks';
3
import { useExpressionEvaluation, useDeepCompareMemoize, usePrevious } from '../../hooks';
4
import { isObject } from 'min-dash';
@@ -67,6 +67,8 @@ export function JSFunctionField(props) {
67
68
_sandbox.promise.then((sandboxInstance) => {
69
sandboxInstance
70
+
71
+ // @ts-ignore
72
.run(wrappedUserCode)
73
.catch(() => { onChange({ field, value: null }); })
74
.then(() => { setSandbox(sandboxInstance); setHasRunLoad(false); });
0 commit comments