Skip to content

Commit

Permalink
Merge pull request #1196 from EcrituresNumeriques/fix/1193
Browse files Browse the repository at this point in the history
Corrige la sélection du style bibliographique dans l'export
  • Loading branch information
thom4parisot authored Jan 23, 2025
2 parents 3c8884d + b549abd commit 0905576
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions front/src/components/Export.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
[]
)

Expand Down

0 comments on commit 0905576

Please sign in to comment.