mirror of https://github.com/grafana/grafana.git
				
				
				
			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:
		
							parent
							
								
									9a4c7ef758
								
							
						
					
					
						commit
						6ffc0c3eda
					
				|  | @ -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 }); | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue