refactor: tighten type system across backend + frontend (#920)
This commit is contained in:
@@ -109,7 +109,10 @@ function useWatchFormData(workspaceId: string) {
|
||||
const agentProfiles = useAppStore((state) => state.agentProfiles.items);
|
||||
const executors = useAppStore((state) => state.executors.items);
|
||||
const allExecutorProfiles = useMemo(
|
||||
() => executors.filter((e) => e.type !== "local").flatMap((e) => e.profiles ?? []),
|
||||
() =>
|
||||
executors
|
||||
.filter((e) => e.type !== "local" && e.type !== "local_pc")
|
||||
.flatMap((e) => e.profiles ?? []),
|
||||
[executors],
|
||||
);
|
||||
|
||||
|
||||
@@ -173,7 +173,10 @@ function useWatchFormData(workspaceId: string) {
|
||||
const agentProfiles = useAppStore((state) => state.agentProfiles.items);
|
||||
const executors = useAppStore((state) => state.executors.items);
|
||||
const allExecutorProfiles = useMemo(
|
||||
() => executors.filter((e) => e.type !== "local").flatMap((e) => e.profiles ?? []),
|
||||
() =>
|
||||
executors
|
||||
.filter((e) => e.type !== "local" && e.type !== "local_pc")
|
||||
.flatMap((e) => e.profiles ?? []),
|
||||
[executors],
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user