Commit e38fc693 by Torkel Ödegaard Committed by GitHub

DataSourceSettings: Fixes add header button, it should not trigger a save & test action (#31135)

parent e21f6a29
......@@ -52,6 +52,7 @@ const getCustomHeaderRowStyles = stylesFactory(() => {
`,
};
});
const CustomHeaderRow: React.FC<CustomHeaderRowProps> = ({ header, onBlur, onChange, onRemove, onReset }) => {
const styles = getCustomHeaderRowStyles();
return (
......@@ -138,7 +139,7 @@ export class CustomHeadersSettings extends PureComponent<Props, State> {
onHeaderAdd = () => {
this.setState((prevState) => {
return { headers: [...prevState.headers, { id: uniqueId(), name: '', value: '', configured: false }] };
}, this.updateSettings);
});
};
onHeaderChange = (headerIndex: number, value: CustomHeader) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment