]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-20382 Fix flaky portfolio test - round 4
authorJeremy Davis <jeremy.davis@sonarsource.com>
Fri, 27 Oct 2023 09:00:14 +0000 (11:00 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 27 Oct 2023 20:03:00 +0000 (20:03 +0000)
server/sonar-web/src/main/js/app/components/extensions/Extension.tsx

index e19e4f2aaea4cf47a563e99fbc60a2d5dfcc472b..b248789a7aa8d8762f88906f3027782c3b25f3a3 100644 (file)
@@ -20,6 +20,7 @@
 import { withTheme } from '@emotion/react';
 import { QueryClient } from '@tanstack/react-query';
 import { Theme } from 'design-system';
+import { isEqual } from 'lodash';
 import * as React from 'react';
 import { Helmet } from 'react-helmet-async';
 import { injectIntl, WrappedComponentProps } from 'react-intl';
@@ -67,7 +68,7 @@ class Extension extends React.PureComponent<ExtensionProps, State> {
     if (prevProps.extension.key !== this.props.extension.key) {
       this.stopExtension();
       this.startExtension();
-    } else if (prevProps.location !== this.props.location) {
+    } else if (!isEqual(prevProps.location, this.props.location)) {
       this.startExtension();
     }
   }