Skip to content

Commit 4535f38

Browse files
committed
sq
1 parent e723faa commit 4535f38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/form-js-viewer/src/render/components/form-fields/JSFunctionField.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Sandbox from 'websandbox';
1+
import Sandbox from '@jetbrains/websandbox';
22
import { useCallback, useEffect, useState } from 'preact/hooks';
33
import { useExpressionEvaluation, useDeepCompareMemoize, usePrevious } from '../../hooks';
44
import { isObject } from 'min-dash';
@@ -67,6 +67,8 @@ export function JSFunctionField(props) {
6767

6868
_sandbox.promise.then((sandboxInstance) => {
6969
sandboxInstance
70+
71+
// @ts-ignore
7072
.run(wrappedUserCode)
7173
.catch(() => { onChange({ field, value: null }); })
7274
.then(() => { setSandbox(sandboxInstance); setHasRunLoad(false); });

0 commit comments

Comments
 (0)