Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,7 @@ function useActorEngineContext({ actorId }: { actorId: ActorId }) {
const provider = useEngineCompatDataProvider();

const actorContext = useMemo(() => {
return engineToken
? createInspectorActorContext({
return createInspectorActorContext({
url: getConfig().apiUrl,
token: async () => {
const runner = await queryClient.fetchQuery(
Expand All @@ -245,8 +244,7 @@ function useActorEngineContext({ actorId }: { actorId: ActorId }) {
);
},
engineToken,
})
: null;
});
}, [actor?.runner, provider.runnerByNameQueryOptions, engineToken]);

return { actorContext, actor, runner, isLoading };
Expand Down
Loading