File tree Expand file tree Collapse file tree
reactviews/pages/ConnectionDialog Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -694,9 +694,8 @@ export class ConnectionStore {
694694 let dupeCount = 0 ;
695695
696696 for ( const conn of connResults ) {
697- const key = conn . id + "-" + conn . profileSource ; // Use both ID and source as key to allow same profile in both lists
698- const storedConn = uniqueConnections . get ( key ) ;
699- if ( storedConn === undefined || storedConn ?. profileSource !== conn . profileSource ) {
697+ const key = `${ conn . id } -${ conn . profileSource } ` ; // Use both ID and source as key to allow same profile in both lists
698+ if ( ! uniqueConnections . has ( key ) ) {
700699 uniqueConnections . set ( key , conn ) ;
701700 } else {
702701 dupeCount ++ ;
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ export const ConnectionsListContainer = () => {
159159 return (
160160 < ConnectionCard
161161 connection = { connection }
162- key = { "mru" + index }
162+ key = { "mru" + connection . id }
163163 actionButton = { {
164164 icon : < Delete16Regular /> ,
165165 onClick : ( e ) => {
@@ -188,7 +188,7 @@ export const ConnectionsListContainer = () => {
188188 return (
189189 < ConnectionCard
190190 connection = { connection }
191- key = { "saved" + index }
191+ key = { "saved" + connection . id }
192192 actionButton = { {
193193 icon : < Delete16Regular /> ,
194194 onClick : ( e ) => {
You can’t perform that action at this time.
0 commit comments