diff options
Diffstat (limited to 'devtools/client/webconsole/components/Output/LazyMessageList.js')
-rw-r--r-- | devtools/client/webconsole/components/Output/LazyMessageList.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/devtools/client/webconsole/components/Output/LazyMessageList.js b/devtools/client/webconsole/components/Output/LazyMessageList.js index 931b5bb8bd..203efbded6 100644 --- a/devtools/client/webconsole/components/Output/LazyMessageList.js +++ b/devtools/client/webconsole/components/Output/LazyMessageList.js @@ -86,7 +86,7 @@ class LazyMessageList extends Component { } // FIXME: https://bugzilla.mozilla.org/show_bug.cgi?id=1774507 - UNSAFE_componentWillUpdate(nextProps, nextState) { + UNSAFE_componentWillUpdate(nextProps) { if (nextProps.cacheGeneration !== this.props.cacheGeneration) { this.#cachedHeights = []; this.#startIndex = 0; @@ -158,10 +158,6 @@ class LazyMessageList extends Component { #cachedHeights; #scrollHandlerBinding; - get #maxIndex() { - return this.props.items.length - 1; - } - get #overdrawHeight() { return this.props.scrollOverdrawCount * this.props.itemDefaultHeight; } @@ -269,7 +265,7 @@ class LazyMessageList extends Component { #addListeners() { const { viewportRef } = this.props; viewportRef.current.addEventListener("scroll", this.#scrollHandlerBinding); - this.#resizeObserver = new ResizeObserver(entries => { + this.#resizeObserver = new ResizeObserver(() => { this.#viewportHeight = viewportRef.current.parentNode.parentNode.clientHeight; this.forceUpdate(); |