diff --git a/packages/form-js-viewer/src/render/components/form-fields/JSFunctionField.js b/packages/form-js-viewer/src/render/components/form-fields/JSFunctionField.js index b671466c6..225a7daeb 100644 --- a/packages/form-js-viewer/src/render/components/form-fields/JSFunctionField.js +++ b/packages/form-js-viewer/src/render/components/form-fields/JSFunctionField.js @@ -1,4 +1,4 @@ -import Sandbox from 'websandbox'; +import Sandbox from '@jetbrains/websandbox'; import { useCallback, useEffect, useState } from 'preact/hooks'; import { useExpressionEvaluation, useDeepCompareMemoize, usePrevious } from '../../hooks'; import { isObject } from 'min-dash'; @@ -67,6 +67,8 @@ export function JSFunctionField(props) { _sandbox.promise.then((sandboxInstance) => { sandboxInstance + + // @ts-ignore .run(wrappedUserCode) .catch(() => { onChange({ field, value: null }); }) .then(() => { setSandbox(sandboxInstance); setHasRunLoad(false); });