]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-16315 Replace React legacy lifecycle methods in security hotspots
authorPhilippe Perrin <philippe.perrin@sonarsource.com>
Fri, 22 Apr 2022 10:15:42 +0000 (12:15 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 22 Apr 2022 20:03:02 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotSnippetContainer.tsx

index 0e69cbecebaf009f88aa28bd83704c13fd60f067..01f7f6821f5390df2332ab5d38396f733f27660b 100644 (file)
@@ -56,7 +56,7 @@ export default class HotspotSnippetContainer extends React.Component<Props, Stat
     secondaryLocations: []
   };
 
-  async componentWillMount() {
+  async componentDidMount() {
     this.mounted = true;
     await this.initializeSecondaryLocations();
     this.fetchSources();