Skip to content

Commit b0b87b0

Browse files
committed
fix(fe): empty token it is a valid token
1 parent 8d20c5f commit b0b87b0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

frontend/src/components/actors/guard-connectable-inspector.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,7 @@ function useActorEngineContext({ actorId }: { actorId: ActorId }) {
231231
const provider = useEngineCompatDataProvider();
232232

233233
const actorContext = useMemo(() => {
234-
return engineToken
235-
? createInspectorActorContext({
234+
return createInspectorActorContext({
236235
url: getConfig().apiUrl,
237236
token: async () => {
238237
const runner = await queryClient.fetchQuery(
@@ -245,8 +244,7 @@ function useActorEngineContext({ actorId }: { actorId: ActorId }) {
245244
);
246245
},
247246
engineToken,
248-
})
249-
: null;
247+
});
250248
}, [actor?.runner, provider.runnerByNameQueryOptions, engineToken]);
251249

252250
return { actorContext, actor, runner, isLoading };

0 commit comments

Comments
 (0)