This is an automated email from the ASF dual-hosted git repository. michaelsmolina pushed a commit to branch 5.0 in repository https://gitbox.apache.org/repos/asf/superset.git
commit 9ea2ad5105a8f4cb24fb988a1c2a185e07bdb82a Author: Damian Pendrak <[email protected]> AuthorDate: Mon Feb 10 16:40:55 2025 +0100 fix: handlebars html and css templates reset on dataset update (#32195) (cherry picked from commit 0f6bd5ea83edeb7e5b15618b63f2a21bcbca76cf) --- .../plugin-chart-handlebars/src/plugin/controls/handlebarTemplate.tsx | 1 + .../plugins/plugin-chart-handlebars/src/plugin/controls/style.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/handlebarTemplate.tsx b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/handlebarTemplate.tsx index 71b5b9b067..22281f09bf 100644 --- a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/handlebarTemplate.tsx +++ b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/handlebarTemplate.tsx @@ -65,6 +65,7 @@ export const handlebarsTemplateControlSetItem: ControlSetItem = { </ul>`, isInt: false, renderTrigger: true, + valueKey: null, validators: [validateNonEmpty], mapStateToProps: ({ controls }) => ({ diff --git a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/style.tsx b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/style.tsx index b5f8dc9382..9723228146 100644 --- a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/style.tsx +++ b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/style.tsx @@ -75,6 +75,7 @@ export const styleControlSetItem: ControlSetItem = { description: t('CSS applied to the chart'), isInt: false, renderTrigger: true, + valueKey: null, validators: [], mapStateToProps: ({ controls }) => ({
