Skip to content

Commit f4ed286

Browse files
committed
Use random id
1 parent 9e8ba58 commit f4ed286

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/remix-ui/editor/src/lib/remix-ui-editor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ export const EditorUI = (props: EditorUIProps) => {
860860
marginClassName: 'modifiedChangesDecoration',
861861
}
862862
}])
863-
const widgetId = `accept_decline_widget_change_docs`
863+
const widgetId = `accept_decline_widget${Math.random().toString(36).substring(2, 15)}`
864864

865865
setCurrentDiffFile(uri)
866866
setWidgetIds(widgetIds => [...widgetIds, widgetId])
@@ -880,7 +880,7 @@ export const EditorUI = (props: EditorUIProps) => {
880880
marginClassName: 'newChangesDecoration',
881881
}
882882
}])
883-
const widgetId = `accept_decline_widget_new_docs`
883+
const widgetId = `accept_decline_widget${Math.random().toString(36).substring(2, 15)}`
884884

885885
setCurrentDiffFile(uri)
886886
setWidgetIds(widgetIds => [...widgetIds, widgetId])

0 commit comments

Comments
 (0)