mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-05 09:33:07 +00:00
Update apps/ui/src/components/views/board-view.tsx
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -1275,10 +1275,9 @@ export function BoardView() {
|
|||||||
runningAgentsCount={runningAutoTasks.length}
|
runningAgentsCount={runningAutoTasks.length}
|
||||||
onConcurrencyChange={(newMaxConcurrency) => {
|
onConcurrencyChange={(newMaxConcurrency) => {
|
||||||
if (currentProject) {
|
if (currentProject) {
|
||||||
// If selectedWorktree is undefined, fallback to null (main/primary worktree)
|
// If selectedWorktree is undefined or it's the main worktree, branchName will be null.
|
||||||
// Use null for the main worktree, otherwise use the branch name; also null if no worktree selected
|
// Otherwise, use the branch name.
|
||||||
const branchName =
|
const branchName = selectedWorktree?.isMain === false ? selectedWorktree.branch : null;
|
||||||
selectedWorktree && !selectedWorktree.isMain ? selectedWorktree.branch : null;
|
|
||||||
setMaxConcurrencyForWorktree(currentProject.id, branchName, newMaxConcurrency);
|
setMaxConcurrencyForWorktree(currentProject.id, branchName, newMaxConcurrency);
|
||||||
// Also update backend if auto mode is running
|
// Also update backend if auto mode is running
|
||||||
if (autoMode.isRunning) {
|
if (autoMode.isRunning) {
|
||||||
|
|||||||
Reference in New Issue
Block a user