diff --git a/front/src/components/Export.jsx b/front/src/components/Export.jsx index 3aa91ec6f..922f32096 100644 --- a/front/src/components/Export.jsx +++ b/front/src/components/Export.jsx @@ -45,12 +45,13 @@ export default function Export(props) { } = useSelector((state) => state.exportPreferences, shallowEqual) const setPreference = useCallback( - (key) => (event) => - dispatch({ - type: 'SET_EXPORT_PREFERENCES', - key, - value: event.target.value, - }), + /** @param {string} key */ (key) => + /** @param {string|Event} event */ (event) => + dispatch({ + type: 'SET_EXPORT_PREFERENCES', + key, + value: event?.target?.value ?? event, + }), [] )