Function Incorrectly Updates an Ignored Field
Options
Karl Larson
Member ✭
I have a function that updates two of three fields in an object. The third one, onboarding_completed, is ignored so it shouldn't change.
However, when the function runs, it sets onboarding_completed to false.
Starting onboarding_completed value is true[CleanShot 2021-12-21 at 15.17.27@2x.jpg]
The Function (set to ignore onboarding_completed)[CleanShot 2021-12-21 at 15.18.02@2x.jpg]
Resulting Debugger
• Input correctly shows onboarding_completed being ignored and initial value of true.
• However, the result shows onboarding_completed set to false.[CleanShot 2021-12-21 at 15.21.42@2x.jpg]
However, when the function runs, it sets onboarding_completed to false.
Starting onboarding_completed value is true[CleanShot 2021-12-21 at 15.17.27@2x.jpg]
The Function (set to ignore onboarding_completed)[CleanShot 2021-12-21 at 15.18.02@2x.jpg]
Resulting Debugger
• Input correctly shows onboarding_completed being ignored and initial value of true.
• However, the result shows onboarding_completed set to false.[CleanShot 2021-12-21 at 15.21.42@2x.jpg]
Comments
-
Xano does full object replacements so you would need to first get the object, update it in a variable, then replace the entire object with the updated value in the variable
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback