File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
packages/appsync-modelgen-plugin/src/utils Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -54,15 +54,14 @@ export function getConnectedFieldV2(
54
54
// Find a field on the other side which connected by a @connection and has the same fields[0] as indexName field
55
55
const otherSideConnectedField = connectedModel . fields
56
56
. filter ( f => f . type === model . name )
57
- . find ( f => {
58
- return f . directives . find ( d => {
59
- return (
57
+ . find ( f =>
58
+ f . directives . find (
59
+ d =>
60
60
( d . name === 'belongsTo' || d . name === 'hasOne' || d . name === 'hasMany' ) &&
61
61
d . arguments . fields &&
62
- d . arguments . fields [ 0 ] === connectedFieldName
63
- ) ;
64
- } ) ;
65
- } ) ;
62
+ d . arguments . fields [ 0 ] === connectedFieldName ,
63
+ ) ,
64
+ ) ;
66
65
if ( otherSideConnectedField ) {
67
66
return otherSideConnectedField ;
68
67
}
You can’t perform that action at this time.
0 commit comments