Skip to content

Commit

Permalink
renaming variable containing duotone svg filter presets
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasbenedetto committed May 24, 2022
1 parent bdcd127 commit 2e0f098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/block-preview/auto.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function AutoBlockPreview( {
return styles;
}, [ styles ] );

const duotonePresets = useMemo( () => {
const svgFilters = useMemo( () => {
return [ ...( duotone?.default ?? [] ), ...( duotone?.theme ?? [] ) ];
}, [ duotone ] );

Expand Down Expand Up @@ -117,7 +117,7 @@ function AutoBlockPreview( {
{ contentResizeListener }
{
/* Filters need to be rendered before children to avoid Safari rendering issues. */
duotonePresets.map( ( preset ) => (
svgFilters.map( ( preset ) => (
<PresetDuotoneFilter
preset={ preset }
key={ preset.slug }
Expand Down

0 comments on commit 2e0f098

Please sign in to comment.