Skip to content

Removed react element from config as that makes template unserializable - #14

Merged
Hyperkid123 merged 1 commit into
patternfly:mainfrom
edewit:issue-13
Dec 4, 2025
Merged

Hyperkid123 merged 1 commit into
patternfly:mainfrom
edewit:issue-13

Conversation

@edewit

@edewit edewit commented Nov 26, 2025

Copy link
Copy Markdown
Contributor

I opted to make as little changes as needed to fix this issue only removing the icon from the config, but another option would be to completely remove the config, as it's already widgetMapping
fixes: #13
Signed-off-by: Erik Jan de Wit erikjan.dewit@gmail.com

initialTemplate={template}
onTemplateChange={(newTemplate) => {
setTemplate(newTemplate);
console.log('newTemplate', JSON.stringify(newTemplate, null, 2));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Extra debug statement

@Hyperkid123

Copy link
Copy Markdown
Collaborator

Thank you, jsut one small nit. Unless the log was deliberate for the example.

@edewit

edewit commented Nov 27, 2025

Copy link
Copy Markdown
Contributor Author

@Hyperkid123 right it was as meant as an example, removed it now

@Hyperkid123

Copy link
Copy Markdown
Collaborator

@edewit if you could rebase the branch, that would be great. It should fix the CI issues.

fixes: patternfly#13
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
@Hyperkid123
Hyperkid123 merged commit 47f44f6 into patternfly:main Dec 4, 2025
3 of 5 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0-prerelease.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Non serializable data in onTemplateChange

2 participants