I\'ve got Switch element in React app for the Update record function and i want the Switch element to show the current state and set the new state and save it, but once i set th