Add a comment
This commit is contained in:
parent
9c2f4be17c
commit
3c118f0cf7
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ export function ProfileSettingsTab({ client }: Props) {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const form = formRef.current!;
|
const form = formRef.current!;
|
||||||
|
// Auto-save when the user dismisses this component
|
||||||
return () => {
|
return () => {
|
||||||
if (formChanged.current) {
|
if (formChanged.current) {
|
||||||
const data = new FormData(form);
|
const data = new FormData(form);
|
||||||
|
|
Loading…
Add table
Reference in a new issue