Skip to content

Commit ff16d8b

Browse files
majdyzclaude
andcommitted
style: apply auto-formatting from pre-commit hooks
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 4cb19fa commit ff16d8b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/RunDetailHeader/RunDetailHeader.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ export function RunDetailHeader({
5555

5656
const handleSafeModeUpdate = async (updatedGraph?: GraphModel) => {
5757
// Update the library agent query data optimistically
58-
const agentQueryKey = getGetV2GetLibraryAgentQueryOptions(agent.id.toString()).queryKey;
59-
58+
const agentQueryKey = getGetV2GetLibraryAgentQueryOptions(
59+
agent.id.toString(),
60+
).queryKey;
61+
6062
if (updatedGraph) {
6163
queryClient.setQueryData(agentQueryKey, (oldData: any) => {
6264
if (oldData?.data) {
@@ -71,7 +73,7 @@ export function RunDetailHeader({
7173
return oldData;
7274
});
7375
}
74-
76+
7577
// Force refetch fresh data
7678
await queryClient.refetchQueries({
7779
queryKey: agentQueryKey,

autogpt_platform/frontend/src/components/molecules/FloatingSafeModeToggle/FloatingSafeModeToggle.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ export function FloatingSafeModeToggle({
5252
});
5353

5454
// Handle both GraphModel and LibraryAgent types
55-
const graphId = "graph_id" in graph ? graph.graph_id : (graph.id || "");
55+
const graphId = "graph_id" in graph ? graph.graph_id : graph.id || "";
5656
const graphName = graph.name;
5757
const graphDescription = graph.description;
5858
const graphNodes = "nodes" in graph ? graph.nodes : [];
5959
const graphLinks = "links" in graph ? graph.links : [];
60-
const graphMetadata = 'metadata' in graph ? (graph.metadata || {}) : {};
60+
const graphMetadata = "metadata" in graph ? graph.metadata || {} : {};
6161

6262
// Use server data as source of truth
6363
const currentSafeMode = graphMetadata?.safe_mode ?? true;
@@ -112,7 +112,7 @@ export function FloatingSafeModeToggle({
112112
toast,
113113
]);
114114

115-
// Apply variant-specific styling
115+
// Apply variant-specific styling
116116
const containerClasses = variant === "black" ? "fixed z-50" : "";
117117
const buttonVariant = "secondary";
118118
const buttonSize = "small";

0 commit comments

Comments
 (0)