Toggle reverting to previous value on save
I have a toggle:
When I change it and click save on the resource, it says it saves succesfully, but then reverts back to it's original value. After refreshing the page it's value is updated. How do I ensure that changing the value and clicking save doesn't lose the updated value?
When I change it and click save on the resource, it says it saves succesfully, but then reverts back to it's original value. After refreshing the page it's value is updated. How do I ensure that changing the value and clicking save doesn't lose the updated value?