Profile editing: Fix bug with reordering (#38147)

This commit is contained in:
Echo authored and GitHub committed 2026-03-11 12:09:54 +00:00
1 parent da4b717211
commit f971670c62
2 files changed
+8 -5

No files matched your search

@@ -212,11 +212,9 @@ export const ReorderFieldsModal: FC<DialogModalProps> = ({ onClose }) => {
return;
}
newFields.push({ name: field.name, value: field.value });
void dispatch(patchProfile({ fields_attributes: newFields })).then(
onClose,
);
}
void dispatch(patchProfile({ fields_attributes: newFields })).then(onClose);
}, [dispatch, fieldKeys, fields, onClose]);
const emojis = useAppSelector((state) => state.custom_emojis);