Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

fix(editor): stamp the edited step as manual in local state

davbioa0b2cb09e752
diff --git a/src/ui/fullview/GuideContent.tsx b/src/ui/fullview/GuideContent.tsx
index d4ec6d7..314d8fb 100644
--- a/src/ui/fullview/GuideContent.tsx
+++ b/src/ui/fullview/GuideContent.tsx
@@ -202,7 +202,12 @@ export default function GuideContent({ guideId, initialStepId, initialTool }: Gu
await updateStepDescription(stepId, description, 'manual');
setData((prev) => {
if (!prev) return prev;
- return { ...prev, steps: prev.steps.map((s) => (s.id === stepId ? { ...s, description } : s)) };
+ return {
+ ...prev,
+ steps: prev.steps.map((s) =>
+ s.id === stepId ? { ...s, description, descriptionSource: 'manual' as const } : s,
+ ),
+ };
});
}, []);