Skip to content

Commit

Permalink
lib: Fix ESLint error in DynamicListForm
Browse files Browse the repository at this point in the history
The ESLint call from esbuild didn't catch this as we don't use this
component in Cockpit itself. But the one from test/static-code will
(once it gets fixed to actually work).
  • Loading branch information
martinpitt committed Feb 7, 2024
1 parent e8967c5 commit 9b5becf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/lib/cockpit-components-dynamic-list.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class DynamicListForm extends React.Component {

addItem() {
this.setState(state => {
return { list: [...state.list, {key: this.keyCounter++, ...this.props.default}] };
return { list: [...state.list, { key: this.keyCounter++, ...this.props.default }] };
}, () => this.props.onChange(this.state.list));
}

Expand Down

0 comments on commit 9b5becf

Please sign in to comment.