From 59ad6d227bd326e0cb9ef1ff1661b18890776d81 Mon Sep 17 00:00:00 2001 From: Alex Lende Date: Wed, 12 Jan 2022 17:00:20 -0600 Subject: [PATCH] Formatting for getPresetsSvgFilters --- .../global-styles/use-global-styles-output.js | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/packages/edit-site/src/components/global-styles/use-global-styles-output.js b/packages/edit-site/src/components/global-styles/use-global-styles-output.js index 476a7ea5e9571..ba671ae29b228 100644 --- a/packages/edit-site/src/components/global-styles/use-global-styles-output.js +++ b/packages/edit-site/src/components/global-styles/use-global-styles-output.js @@ -142,17 +142,15 @@ function getPresetsSvgFilters( blockPresets = {} ) { const presetByOrigin = get( blockPresets, metadata.path, {} ); return [ 'default', 'theme' ] .filter( ( origin ) => presetByOrigin[ origin ] ) - .flatMap( ( origin ) => { - return presetByOrigin[ origin ].map( ( preset ) => { - return ( - - ); - } ); - } ); + .flatMap( ( origin ) => + presetByOrigin[ origin ].map( ( preset ) => ( + + ) ) + ); } ); } @@ -381,9 +379,9 @@ export const toStyles = ( tree, blockSelectors ) => { export function toSvgFilters( tree, blockSelectors ) { const nodesWithSettings = getNodesWithSettings( tree, blockSelectors ); - return nodesWithSettings.flatMap( ( { presets } ) => - getPresetsSvgFilters( presets ) - ); + return nodesWithSettings.flatMap( ( { presets } ) => { + return getPresetsSvgFilters( presets ); + } ); } const getBlockSelectors = ( blockTypes ) => {