Skip to content

Commit

Permalink
sq
Browse files Browse the repository at this point in the history
  • Loading branch information
Skaiir committed Mar 25, 2024
1 parent e723faa commit 4535f38
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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); });
Expand Down

0 comments on commit 4535f38

Please sign in to comment.