Skip to content

Commit

Permalink
fix execute not working for JS operators
Browse files Browse the repository at this point in the history
  • Loading branch information
imanjra committed Sep 25, 2024
1 parent 1b14d08 commit 17be412
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/packages/operators/src/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@ function useExecutionOptions(operatorURI, ctx, isRemote) {

const fetch = useCallback(
debounce(async (ctxOverride = null) => {
if (!isRemote) return;
if (!isRemote) {
setExecutionOptions({ allowImmediateExecution: true });
return;
}
if (!ctxOverride) setIsLoading(true); // only show loading if loading the first time
const options = await resolveExecutionOptions(
operatorURI,
Expand Down

0 comments on commit 17be412

Please sign in to comment.