From 3a6a2dd4a631f768e61bdb0ac8da51f43343849c Mon Sep 17 00:00:00 2001 From: sylenien Date: Fri, 25 Nov 2022 17:59:49 +0100 Subject: [PATCH] refactor(ui/player): remove key and prop warnings --- frontend/app/components/Errors/List/List.js | 19 +++++---- .../components/Session/IOSPlayer/Crashes.js | 3 +- .../app/components/Session/IOSPlayer/Logs.js | 9 ++--- .../Console/ConsoleRow/ConsoleRow.tsx | 2 +- .../Session_/Exceptions/Exceptions.tsx | 1 - .../components/Session_/GraphQL/GraphQL.js | 1 - .../Session_/Network/NetworkContent.js | 1 - .../DevTools/ConsolePanel/ConsolePanel.tsx | 39 ++++++++++--------- .../shared/DevTools/ConsoleRow/ConsoleRow.tsx | 4 +- .../DevTools/NetworkPanel/NetworkPanel.tsx | 1 - .../StackEventPanel/StackEventPanel.tsx | 1 - .../LiveSessionSearchField.tsx | 3 +- 12 files changed, 38 insertions(+), 46 deletions(-) diff --git a/frontend/app/components/Errors/List/List.js b/frontend/app/components/Errors/List/List.js index 9f379319a..8a22a1f2d 100644 --- a/frontend/app/components/Errors/List/List.js +++ b/frontend/app/components/Errors/List/List.js @@ -25,7 +25,7 @@ const sortOptions = Object.entries(sortOptionsMap) @connect(state => ({ loading: state.getIn([ "errors", "loading" ]), - resolveToggleLoading: state.getIn(["errors", "resolve", "loading"]) || + resolveToggleLoading: state.getIn(["errors", "resolve", "loading"]) || state.getIn(["errors", "unresolve", "loading"]), ignoreLoading: state.getIn([ "errors", "ignore", "loading" ]), mergeLoading: state.getIn([ "errors", "merge", "loading" ]), @@ -54,19 +54,19 @@ export default class List extends React.PureComponent { } this.debounceFetch = debounce(this.props.editOptions, 1000); } - + componentDidMount() { this.props.applyFilter({ }); } check = ({ errorId }) => { const { checkedIds } = this.state; - const newCheckedIds = checkedIds.contains(errorId) - ? checkedIds.remove(errorId) + const newCheckedIds = checkedIds.contains(errorId) + ? checkedIds.remove(errorId) : checkedIds.add(errorId); this.setState({ checkedAll: newCheckedIds.size === this.props.list.size, - checkedIds: newCheckedIds + checkedIds: newCheckedIds }); } @@ -184,7 +184,7 @@ export default class List extends React.PureComponent { onClick={ this.unresolve } disabled={ someLoading || currentCheckedIds.size === 0} /> - } + } { status !== IGNORED && - } + }
- Sort By + Sort By