Skip to content

Fix: Get default presets, add support for themes.json v3#3536

Merged
bfintal merged 4 commits into
developfrom
fix/3532-opening-global-settings-causes-error
Jun 25, 2025
Merged

Fix: Get default presets, add support for themes.json v3#3536
bfintal merged 4 commits into
developfrom
fix/3532-opening-global-settings-causes-error

Conversation

@kaeizen

@kaeizen kaeizen commented Jun 24, 2025

Copy link
Copy Markdown
Contributor

Fixes #3532

@github-actions

github-actions Bot commented Jun 24, 2025

Copy link
Copy Markdown

🤖 Pull request artifacts

file commit
pr3536-stackable-3536-merge.zip 9a39347

github-actions Bot added a commit that referenced this pull request Jun 24, 2025
github-actions Bot added a commit that referenced this pull request Jun 24, 2025
github-actions Bot added a commit that referenced this pull request Jun 24, 2025
Comment thread src/hooks/use-preset-controls.js Outdated
Comment on lines +53 to +55
PRESET_MAPPING[ property ].settings.join( '.' ),
[ ...PRESET_MAPPING[ property ].settings, 'default' ].join( '.' ),
PRESET_MAPPING[ property ].defaultEnabled.join( '.' )

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this more readable?

Comment thread src/hooks/use-preset-controls.js Outdated
Comment on lines +68 to +71
? ( wpDefaultPresets && defaultSizesEnabled !== false
? [ ...themePresets, ...wpDefaultPresets ] // merge theme and default preset sizes
: themePresets
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this more readable?

github-actions Bot added a commit that referenced this pull request Jun 25, 2025
@bfintal bfintal merged commit 0a6b8ca into develop Jun 25, 2025
7 of 8 checks passed
@bfintal bfintal deleted the fix/3532-opening-global-settings-causes-error branch June 25, 2025 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error: When opening the Stackable global settings, the editor shows an unexpected error

2 participants