File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
apps/web/client/src/components/store/editor/chat Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -140,16 +140,13 @@ export class ChatContext {
140140 highlightedContext : HighlightMessageContext [ ] ,
141141 frames : FrameData [ ] ,
142142 ) : BranchMessageContext [ ] {
143- // Get unique branch IDs from highlighted context
144- const uniqueBranchIds = new Set < string > ( ) ;
143+ // Get unique branch IDs from selected elements and frames context
144+ const uniqueBranchIds = new Set < string > ( frames . map ( frame => frame . frame . branchId ) ) ;
145+
145146 highlightedContext . forEach ( highlight => {
146147 uniqueBranchIds . add ( highlight . branchId ) ;
147148 } ) ;
148149
149- frames . forEach ( ( frame ) => {
150- uniqueBranchIds . add ( frame . frame . branchId ) ;
151- } ) ;
152-
153150 // Get branch objects for each unique branch ID
154151 const branchContext : BranchMessageContext [ ] = [ ] ;
155152 uniqueBranchIds . forEach ( branchId => {
You can’t perform that action at this time.
0 commit comments