Skip to content

Commit 20ac87f

Browse files
committed
lint
1 parent 888beb4 commit 20ac87f

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

apps/array/src/renderer/features/message-editor/components/EditorToolbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ export function EditorToolbar({
3232

3333
// Check if current model is Anthropic
3434
const isAnthropicModel = AVAILABLE_MODELS.some(
35-
(m) => m.id === activeModel && m.provider === "anthropic"
35+
(m) => m.id === activeModel && m.provider === "anthropic",
3636
);
3737

3838
// Thinking state for this task
3939
const thinkingEnabled = useThinkingStore((state) =>
40-
taskId ? state.getThinking(taskId) : false
40+
taskId ? state.getThinking(taskId) : false,
4141
);
4242
const toggleThinking = useThinkingStore((state) => state.toggleThinking);
4343

apps/array/src/renderer/features/sessions/stores/thinkingStore.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,23 @@ export const useThinkingStore = create<ThinkingState & ThinkingActions>()(
4949
const defaultEnabled =
5050
useSettingsStore.getState().defaultThinkingEnabled;
5151
set((state) => ({
52-
thinkingByTask: { ...state.thinkingByTask, [taskId]: defaultEnabled },
52+
thinkingByTask: {
53+
...state.thinkingByTask,
54+
[taskId]: defaultEnabled,
55+
},
5356
}));
5457
}
5558
},
5659
}),
5760
{
5861
name: "thinking-storage",
59-
}
60-
)
62+
},
63+
),
6164
);
6265

6366
// Hook to get thinking state for a specific task
6467
export function useThinkingForTask(taskId: string | undefined) {
6568
return useThinkingStore((state) =>
66-
taskId ? state.getThinking(taskId) : false
69+
taskId ? state.getThinking(taskId) : false,
6770
);
6871
}

0 commit comments

Comments
 (0)