@@ -22,7 +22,7 @@ import LoadDBSchemaDialog from '../Popups/GraphEnhancementDialog/EnitityExtracti
2222import PredefinedSchemaDialog from '../Popups/GraphEnhancementDialog/EnitityExtraction/PredefinedSchemaDialog' ;
2323import { SKIP_AUTH } from '../../utils/Constants' ;
2424import { useNavigate } from 'react-router' ;
25- import { deduplicateByRelationshipTypeOnly , deduplicateNodeByValue } from '../../utils/Utils' ;
25+ import { deduplicateByFullPattern , deduplicateNodeByValue } from '../../utils/Utils' ;
2626
2727const GCSModal = lazy ( ( ) => import ( '../DataSources/GCS/GCSModal' ) ) ;
2828const S3Modal = lazy ( ( ) => import ( '../DataSources/AWS/S3Modal' ) ) ;
@@ -378,7 +378,7 @@ const PageLayout: React.FC = () => {
378378 setSchemaValRels ( rels ) ;
379379 setCombinedRelsVal ( ( prevRels : OptionType [ ] ) => {
380380 const combined = [ ...rels , ...prevRels ] ;
381- return deduplicateByRelationshipTypeOnly ( combined ) ;
381+ return deduplicateByFullPattern ( combined ) ;
382382 } ) ;
383383 setSchemaView ( 'text' ) ;
384384 localStorage . setItem ( LOCAL_KEYS . source , JSON . stringify ( updatedSource ) ) ;
@@ -418,7 +418,7 @@ const PageLayout: React.FC = () => {
418418 setDbRels ( rels ) ;
419419 setCombinedRelsVal ( ( prevRels : OptionType [ ] ) => {
420420 const combined = [ ...rels , ...prevRels ] ;
421- return deduplicateByRelationshipTypeOnly ( combined ) ;
421+ return deduplicateByFullPattern ( combined ) ;
422422 } ) ;
423423 localStorage . setItem ( LOCAL_KEYS . source , JSON . stringify ( updatedSource ) ) ;
424424 localStorage . setItem ( LOCAL_KEYS . type , JSON . stringify ( updatedType ) ) ;
@@ -456,7 +456,7 @@ const PageLayout: React.FC = () => {
456456 setPreDefinedRels ( rels ) ;
457457 setCombinedRelsVal ( ( prevRels : OptionType [ ] ) => {
458458 const combined = [ ...rels , ...prevRels ] ;
459- return deduplicateByRelationshipTypeOnly ( combined ) ;
459+ return deduplicateByFullPattern ( combined ) ;
460460 } ) ;
461461 localStorage . setItem ( LOCAL_KEYS . source , JSON . stringify ( updatedSource ) ) ;
462462 localStorage . setItem ( LOCAL_KEYS . type , JSON . stringify ( updatedType ) ) ;
0 commit comments