File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
packages/compass-data-modeling/src Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ import {
13
13
import {
14
14
deleteRelationship ,
15
15
getCurrentDiagramFromState ,
16
+ getRelationshipForCurrentModel ,
16
17
selectFieldsForCurrentModel ,
17
- selectRelationshipForCurrentModel ,
18
18
updateRelationship ,
19
19
} from '../store/diagram' ;
20
20
import toNS from 'mongodb-ns' ;
@@ -288,7 +288,7 @@ const RelationshipDrawerContent: React.FunctionComponent<
288
288
export default connect (
289
289
( state : DataModelingState , ownProps : { relationshipId : string } ) => {
290
290
const diagram = getCurrentDiagramFromState ( state ) ;
291
- const relationship = selectRelationshipForCurrentModel (
291
+ const relationship = getRelationshipForCurrentModel (
292
292
diagram . edits ,
293
293
ownProps . relationshipId
294
294
) ;
Original file line number Diff line number Diff line change @@ -620,15 +620,11 @@ function getFieldsForCurrentModel(
620
620
621
621
export const selectFieldsForCurrentModel = memoize ( getFieldsForCurrentModel ) ;
622
622
623
- function getRelationshipForCurrentModel (
623
+ export function getRelationshipForCurrentModel (
624
624
edits : MongoDBDataModelDescription [ 'edits' ] ,
625
625
relationshipId : string
626
626
) {
627
627
return selectCurrentModel ( edits ) . relationships . find (
628
628
( r ) => r . id === relationshipId
629
629
) ;
630
630
}
631
-
632
- export const selectRelationshipForCurrentModel = memoize (
633
- getRelationshipForCurrentModel
634
- ) ;
You can’t perform that action at this time.
0 commit comments