Skip to content

Commit

Permalink
fix: remove belongsto field for update related model expression (#1071)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtpascual committed Aug 12, 2023
1 parent 96059ad commit 5c5ae99
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15348,7 +15348,6 @@ export default function CreatePostForm(props) {
input: {
id: original.id,
postCommentsId: post.id,
post: post,
},
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2043,15 +2043,6 @@ const getUpdateRelatedModelExpression = (
);
});

if (belongsToFieldOnRelatedModel) {
statements.push(
factory.createPropertyAssignment(
factory.createIdentifier(belongsToFieldOnRelatedModel),
setToNull ? factory.createNull() : factory.createIdentifier(savedModelName),
),
);
}

/**
* API.graphql({
* query: updateStudent,
Expand Down

0 comments on commit 5c5ae99

Please sign in to comment.