Skip to content

Commit 46ebf04

Browse files
committed
fix: error when resetting
1 parent c23fd12 commit 46ebf04

File tree

1 file changed

+1
-1
lines changed
  • src/plugins/global-settings/typography

1 file changed

+1
-1
lines changed

src/plugins/global-settings/typography/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ addFilter( 'stackable.global-settings.inspector', 'stackable/global-typography',
179179
}
180180

181181
const resetStyles = selector => {
182-
let newSettings
182+
let newSettings = {}
183183
const currentFontPair = [ ...FONT_PAIRS, ...customFontPairs ].find( fontPair => fontPair.name === selectedFontPairName )
184184
if ( ! isEditingFontPair && currentFontPair ) {
185185
newSettings = { ...typographySettings, [ selector ]: currentFontPair.typography[ selector ] }

0 commit comments

Comments
 (0)