Skip to content

Commit 902978d

Browse files
committed
Reset task editor to steps tab when switching tasks
1 parent da2ce7f commit 902978d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

components/modals/RepoFormModal.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,6 +1424,8 @@ const TaskStepsEditor: React.FC<{
14241424
useEffect(() => {
14251425
const currentTaskId = task.id ?? '__no_id__';
14261426
if (currentTaskId !== lastTaskIdRef.current) {
1427+
setActiveDetailTab('steps');
1428+
14271429
const initialState: Record<string, boolean> = {};
14281430
task.steps.forEach(step => {
14291431
initialState[step.id] = STEPS_WITH_DETAILS.has(step.type);

0 commit comments

Comments
 (0)