Skip to content

🎥 Make videos programmatically with React

Update listen-to-runtime-errors.ts

Rishi Raj Jaind155e16e1471
diff --git a/packages/cli/src/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.ts b/packages/cli/src/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.ts
index 90857de8f3..86b65f8ddd 100644
--- a/packages/cli/src/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.ts
+++ b/packages/cli/src/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.ts
@@ -75,7 +75,7 @@ const crashWithFrames = (crash: () => void) => (error: Error) => {
console.log('Hook order changed. Reloading app...');
if (window.remotion_unsavedProps) {
notificationCenter.current?.addNotification({
- id: 'random',
+ id: new Date().toString(),
content:
'There are unsaved changes to the props. Do you want to leave?',
created: new Date().getMilliseconds(),