Skip to content

Commit 393d741

Browse files
committed
fix(web,mobile): a failed ref lookup shows the fallback base the task will save
1 parent a964ff7 commit 393d741

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎apps/mobile/src/features/settings/SettingsScheduledTasksRouteScreen.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,8 +1010,7 @@ function TaskForm({
10101010
<PickerRow
10111011
label="Base branch"
10121012
value={resolveNewTaskBranchLabel({
1013-
branchName:
1014-
automaticBaseRef && automaticBaseRefs.data === null ? null : worktreeBaseRef,
1013+
branchName: automaticBaseRefLoading ? null : worktreeBaseRef,
10151014
startFromOrigin: draft.startFromOrigin,
10161015
workspaceMode: "worktree",
10171016
})}

‎apps/web/src/components/settings/ScheduledTasksSettings.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,7 @@ function ScheduledTaskEditorForm({
17571757
id="scheduled-task-base-ref"
17581758
environmentId={environmentId}
17591759
cwd={selectedProject?.workspaceRoot ?? null}
1760-
value={automaticBaseRef && automaticBaseRefs.data === null ? "" : worktreeBaseRef}
1760+
value={automaticBaseRefLoading ? "" : worktreeBaseRef}
17611761
onValueChange={(baseRef) => setDraft((current) => ({ ...current, baseRef }))}
17621762
startFromOrigin={draft.startFromOrigin}
17631763
onStartFromOriginChange={(startFromOrigin) =>

0 commit comments

Comments
 (0)