Skip to content

Commit 4f726a2

Browse files
committed
Add decorator to list of collection after restoring widgets
1 parent 4fc3a66 commit 4f726a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ export const EditorUI = (props: EditorUIProps) => {
378378

379379
addAcceptDeclineWidget(widgetId, editorRef.current, { column: 0, lineNumber: newEntryRange.startLineNumber + 1 }, () => acceptHandler(decoratorList, widgetId), () => rejectHandler(decoratorList, widgetId))
380380
}, 150)
381+
setDecoratorListCollection(decoratorListCollection => ({ ...decoratorListCollection, [widgetId]: decoratorList }))
381382
})
382383
// set the current diff file, this is needed to avoid removeAllWidgets called more than once, because the currentFileChanged event is broken and fired more than once.
383384
setCurrentDiffFile(props.currentFile + '-ai')

0 commit comments

Comments
 (0)