-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Once a value is set for Country in a shared profile, this value does not clear. Even after clearing the value and saving the value still remains in the data store.
When the value is cleared in the form it is set to undefined, I am thinking it needs to be either empty string or null to clear correctly.
This could be corrected on the api as well if the update method is refactored for the shared profile. Currently an update merges data so if the data isn't in the update object that value remains in the document.
I believe both sites send all data it wants in the record, so this may be the correct action to take
To Reproduce
Steps to reproduce the behavior:
- Go to /my/profiles/shared
- Ensure you have a profile record saved in the database with a country value
- Click on clear the country field value
- Save the record
- Refresh the page
- Notice that the country value comes bace
Expected behavior
The country value should not be retained
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working