]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-10685 It's now possible to deactivate rules when more than 100 are displayed
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Fri, 1 Jun 2018 13:17:57 +0000 (15:17 +0200)
committerSonarTech <sonartech@sonarsource.com>
Tue, 5 Jun 2018 18:20:50 +0000 (20:20 +0200)
server/sonar-web/src/main/js/apps/coding-rules/components/App.tsx

index e0c989cc633af800df8e9c7506c235bfc8406778..04a60d87c0ad92ffcd2c31ff51f7f486d93414eb 100644 (file)
@@ -261,8 +261,8 @@ export default class App extends React.PureComponent<Props, State> {
       this.makeFetchRequest({ p: nextPage, facets: undefined }).then(
         ({ actives, paging, rules }) => {
           if (this.mounted) {
-            this.setState(state => ({
-              actives: { ...state.actives, actives },
+            this.setState((state: State) => ({
+              actives: { ...state.actives, ...actives },
               loading: false,
               paging,
               rules: [...state.rules, ...rules]