You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a bug in your codebase in initializeModel function - the reduce there returns property value instead of accumulator reference which causes an error in the second iteration.
First iteration
Second Iteration
Expected behavior
sortKeyValues reduce should return acc instead of one of its field value
Thank you for bringing up this issue! A new version of the package (@aws-amplify/data-schema version 1.16.0) was released and the accumulator return type has been fixed.
Before opening, please confirm:
JavaScript Framework
Angular
Amplify APIs
GraphQL API
Amplify Version
v6
Amplify Categories
api
Backend
Amplify Gen 2
Environment information
Describe the bug
I found a bug in your codebase in
initializeModel
function - the reduce there returns property value instead of accumulator reference which causes an error in the second iteration.Expected behavior
sortKeyValues
reduce should return acc instead of one of its field valueReproduction steps
Call
initializeModel
functionCode Snippet
// Put your code below this line.
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: