diff --git a/components/inspectit-ocelot-configurationserver-ui/src/components/common/dialogs/ConvertDialog.js b/components/inspectit-ocelot-configurationserver-ui/src/components/common/dialogs/ConvertDialog.js index d1e60a964a..6a2751d48b 100644 --- a/components/inspectit-ocelot-configurationserver-ui/src/components/common/dialogs/ConvertDialog.js +++ b/components/inspectit-ocelot-configurationserver-ui/src/components/common/dialogs/ConvertDialog.js @@ -10,7 +10,7 @@ const ConvertDialog = ({ name, visible, onHide, text, onSuccess }) => { const proceedButton = React.createRef(); useEffect(() => { - if (proceedButton && proceedButton.current) { + if (proceedButton?.current?.element) { proceedButton.current.element.focus(); } }); diff --git a/components/inspectit-ocelot-configurationserver-ui/src/components/editor/method-configuration-editor/MethodConfigurationEditor.js b/components/inspectit-ocelot-configurationserver-ui/src/components/editor/method-configuration-editor/MethodConfigurationEditor.js index d2f924f0a3..29a417b39b 100644 --- a/components/inspectit-ocelot-configurationserver-ui/src/components/editor/method-configuration-editor/MethodConfigurationEditor.js +++ b/components/inspectit-ocelot-configurationserver-ui/src/components/editor/method-configuration-editor/MethodConfigurationEditor.js @@ -74,17 +74,6 @@ const MethodConfigurationEditor = ({ yamlConfiguration }) => { }; }); setScopes(currentScopes); - - // expand all rows by default - const initialExpandedRows = _.reduce( - currentScopes, - (result, { typeKey }) => { - result[typeKey] = true; - return result; - }, - {} - ); - setExpandedRows(initialExpandedRows); }, [configuration]); /** @@ -337,7 +326,7 @@ const MethodConfigurationEditor = ({ yamlConfiguration }) => { dataKey="typeKey" sortField="typeKey" sortOrder={1} - groupField="typeKey" + groupRowsBy="typeKey" expandableRowGroups={true} expandedRows={expandedRows} onRowToggle={(e) => setExpandedRows(e.data)} diff --git a/components/inspectit-ocelot-configurationserver-ui/src/components/views/configuration/ConfigurationView.js b/components/inspectit-ocelot-configurationserver-ui/src/components/views/configuration/ConfigurationView.js index 5a44cd26b4..71ccf5e10a 100644 --- a/components/inspectit-ocelot-configurationserver-ui/src/components/views/configuration/ConfigurationView.js +++ b/components/inspectit-ocelot-configurationserver-ui/src/components/views/configuration/ConfigurationView.js @@ -292,6 +292,7 @@ class ConfigurationView extends React.Component { { return ( this.valueChanged(columnProps.rowIndex, columnProps.field, e.target.value)} /> );