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(ui): clear the screenshot override when the parent supplies a new row

Luis Ortizda5d393642e3
diff --git a/src/ui/shared/ScreenshotView.tsx b/src/ui/shared/ScreenshotView.tsx
index 2fe5a4a..700193d 100644
--- a/src/ui/shared/ScreenshotView.tsx
+++ b/src/ui/shared/ScreenshotView.tsx
@@ -98,6 +98,8 @@ export default function ScreenshotView({
if (propScreenshotRef.current !== screenshot) {
propScreenshotRef.current = screenshot;
setDeleted(false);
+ setScreenshotOverride(null);
+ setEditsOverride(undefined);
}
}, [screenshot]);