Skip to content

Commit

Permalink
Fix scriptsHeader/Footer containing one node
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrucs committed Jan 25, 2024
1 parent ea257d3 commit 9d9a57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Layout/useExternalScripts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const useExternalsScripts = (executeOnLoad = false) => {
const { locale } = useIntl();

const consentList = uniqBy(
[...scriptsHeader, ...scriptsFooter].flatMap(({ props }) => [
[scriptsHeader, scriptsFooter].flat().flatMap(({ props }) => [
{
name: props?.['data-name'],
title: props?.['data-title'] ?? props?.['data-name'],
Expand Down

0 comments on commit 9d9a57e

Please sign in to comment.