mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
SQL Datasources: Fix saving of max idle connections and max connection lifetime (#66662)
Add brackets around property name so that it's dynamic
This commit is contained in:
@@ -35,7 +35,7 @@ export const ConnectionLimits = <T extends SQLConnectionLimits>(props: Props<T>)
|
||||
// use a shared function to update respective properties
|
||||
const onJSONDataNumberChanged = (property: keyof SQLConnectionLimits) => {
|
||||
return (number?: number) => {
|
||||
updateJsonData({ property: number });
|
||||
updateJsonData({ [property]: number });
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user