Skip to content

Commit 6448b44

Browse files
author
Akos Kitta
committed
Resolved a React warning.
Removed the widget update due to an incorrect manual merge. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
1 parent c7bb3ab commit 6448b44

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arduino-ide-extension/src/browser/components/component-list/filterable-list-container.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class FilterableListContainer<T extends ArduinoComponent> extends React.C
2020
};
2121
}
2222

23-
componentWillMount(): void {
23+
componentDidMount(): void {
2424
this.search = debounce(this.search, 500);
2525
this.handleFilterTextChange('');
2626
this.props.filterTextChangeEvent(this.handleFilterTextChange.bind(this));
@@ -33,7 +33,6 @@ export class FilterableListContainer<T extends ArduinoComponent> extends React.C
3333
}
3434

3535
render(): React.ReactNode {
36-
this.props.container.update(); // This will recalculate the desired dimension of the scroll-bar thumb. (See: arduino/arduino-pro-ide#101)
3736
return <div className={'filterable-list-container'}>
3837
{this.renderSearchFilter()}
3938
{this.renderSearchBar()}

0 commit comments

Comments
 (0)