Skip to content

Commit

Permalink
fix: join table related model name using incorrect casing in reduce c…
Browse files Browse the repository at this point in the history
…allback (#1124)

Co-authored-by: David Lopez <lopezbnd@amazon.com>
  • Loading branch information
letsbelopez and David Lopez authored Oct 23, 2023
1 parent dd7a773 commit b047400
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3149,7 +3149,6 @@ import {
TextField,
useTheme,
} from \\"@aws-amplify/ui-react\\";
import { Tag } from \\"../API\\";
import { fetchByPath, getOverrideProps, validateField } from \\"./utils\\";
import { API } from \\"aws-amplify\\";
import { listTags } from \\"../graphql/queries\\";
Expand Down Expand Up @@ -3495,7 +3494,7 @@ export default function MovieCreateForm(props) {
movieMovieKey: movie.movieKey,
movietitle: movie.title,
moviegenre: movie.genre,
tagId: Tag.id,
tagId: tag.id,
},
},
})
Expand Down Expand Up @@ -5441,7 +5440,6 @@ import {
TextField,
useTheme,
} from \\"@aws-amplify/ui-react\\";
import { Post } from \\"../API\\";
import { fetchByPath, getOverrideProps, validateField } from \\"./utils\\";
import { API } from \\"aws-amplify\\";
import { listPosts } from \\"../graphql/queries\\";
Expand Down Expand Up @@ -5783,7 +5781,7 @@ export default function TagCreateForm(props) {
variables: {
input: {
tagID: tag.id,
postID: Post.id,
postID: post.id,
},
},
})
Expand Down Expand Up @@ -6768,7 +6766,6 @@ import {
TextField,
useTheme,
} from \\"@aws-amplify/ui-react\\";
import { CPKClass } from \\"../API\\";
import { fetchByPath, getOverrideProps, validateField } from \\"./utils\\";
import { API } from \\"aws-amplify\\";
import {
Expand Down Expand Up @@ -7207,7 +7204,7 @@ export default function CreateCPKTeacherForm(props) {
variables: {
input: {
cPKTeacherSpecialTeacherId: cPKTeacher.specialTeacherId,
cPKClassSpecialClassId: CPKClass.specialClassId,
cPKClassSpecialClassId: cpkClass.specialClassId,
},
},
})
Expand Down Expand Up @@ -20492,7 +20489,6 @@ import {
TextField,
useTheme,
} from \\"@aws-amplify/ui-react\\";
import { CompositeVet } from \\"../API\\";
import { fetchByPath, getOverrideProps, validateField } from \\"./utils\\";
import { API } from \\"aws-amplify\\";
import {
Expand Down Expand Up @@ -21079,8 +21075,8 @@ export default function CreateCompositeDogForm(props) {
input: {
compositeDogName: compositeDog.name,
compositeDogdescription: compositeDog.description,
compositeVetSpecialty: CompositeVet.specialty,
compositeVetcity: CompositeVet.city,
compositeVetSpecialty: compositeVet.specialty,
compositeVetcity: compositeVet.city,
},
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ export const buildManyToManyRelationshipStatements = (
savedModelName,
thisModelPrimaryKeys,
joinTableThisModelFields,
relatedModelName,
joinTableRelatedModelName,
relatedModelPrimaryKeys,
joinTableRelatedModelFields,
importCollection,
Expand Down

0 comments on commit b047400

Please sign in to comment.