From 0f6bd5ea83edeb7e5b15618b63f2a21bcbca76cf Mon Sep 17 00:00:00 2001 From: Damian Pendrak Date: Mon, 10 Feb 2025 16:40:55 +0100 Subject: [PATCH] fix: handlebars html and css templates reset on dataset update (#32195) --- .../src/plugin/controls/handlebarTemplate.tsx | 1 + .../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 c43d95487..6f21892e0 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 @@ -101,6 +101,7 @@ export const handlebarsTemplateControlSetItem: ControlSetItem = { `, 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 b5f8dc938..972322814 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 }) => ({