lots of changes leave me alone its better now
This commit is contained in:
@@ -88,7 +88,7 @@ export default function RoutineDetailPage() {
|
||||
name: newStepName,
|
||||
duration_minutes: newStepDuration,
|
||||
});
|
||||
setSteps([...steps, { ...step, position: steps.length + 1 }]);
|
||||
setSteps([...steps, { ...step, name: newStepName, step_type: 'generic', position: steps.length + 1 }]);
|
||||
setNewStepName('');
|
||||
} catch (err) {
|
||||
console.error('Failed to add step:', err);
|
||||
|
||||
Reference in New Issue
Block a user