From 4a685db574815184751016f07cf23fff18fc261f Mon Sep 17 00:00:00 2001 From: D8H Date: Fri, 17 Jan 2025 20:06:08 +0100 Subject: [PATCH] Fix parameters list not updating when the function configuration was changed (#7321) --- .../EventsFunctionConfigurationEditor/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/newIDE/app/src/EventsFunctionsExtensionEditor/EventsFunctionConfigurationEditor/index.js b/newIDE/app/src/EventsFunctionsExtensionEditor/EventsFunctionConfigurationEditor/index.js index 6b9a33489889..b0c946d0c862 100644 --- a/newIDE/app/src/EventsFunctionsExtensionEditor/EventsFunctionConfigurationEditor/index.js +++ b/newIDE/app/src/EventsFunctionsExtensionEditor/EventsFunctionConfigurationEditor/index.js @@ -214,7 +214,12 @@ export default class EventsFunctionConfigurationEditor extends React.Component< eventsFunctionsContainer={eventsFunctionsContainer} eventsFunctionsExtension={eventsFunctionsExtension} helpPagePath={helpPagePath} - onConfigurationUpdated={onConfigurationUpdated} + onConfigurationUpdated={extensionItemConfigurationAttribute => { + onConfigurationUpdated && + onConfigurationUpdated(extensionItemConfigurationAttribute); + // A function configuration change may impact the parameters. + this.forceUpdate(); + }} renderConfigurationHeader={renderConfigurationHeader} freezeEventsFunctionType={freezeEventsFunctionType} getFunctionGroupNames={getFunctionGroupNames}