diff options
author | stanislavh <stanislav.honcharov@sonarsource.com> | 2023-07-19 11:29:00 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-07-19 20:03:06 +0000 |
commit | 935db01509142ef55b584e89fd7f1737dcd33fc6 (patch) | |
tree | 1be8265d128480a7877eb4652e658acde0c721b6 /server/sonar-web/src/main/js/app | |
parent | d5110d4477e869f5318a63b20b5385ac84416666 (diff) | |
download | sonarqube-935db01509142ef55b584e89fd7f1737dcd33fc6.tar.gz sonarqube-935db01509142ef55b584e89fd7f1737dcd33fc6.zip |
SONAR-19850 Refetch component after the change of main branch
Diffstat (limited to 'server/sonar-web/src/main/js/app')
-rw-r--r-- | server/sonar-web/src/main/js/app/components/ComponentContainer.tsx | 1 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/app/components/componentContext/ComponentContext.ts | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/app/components/ComponentContainer.tsx b/server/sonar-web/src/main/js/app/components/ComponentContainer.tsx index 250f27e9a60..3d98cb0a5bb 100644 --- a/server/sonar-web/src/main/js/app/components/ComponentContainer.tsx +++ b/server/sonar-web/src/main/js/app/components/ComponentContainer.tsx @@ -359,6 +359,7 @@ export class ComponentContainer extends React.PureComponent<Props, State> { isInProgress, isPending, onComponentChange: this.handleComponentChange, + fetchComponent: this.fetchComponent, projectBinding, }} > diff --git a/server/sonar-web/src/main/js/app/components/componentContext/ComponentContext.ts b/server/sonar-web/src/main/js/app/components/componentContext/ComponentContext.ts index 8fd8ae528ea..cc8628af211 100644 --- a/server/sonar-web/src/main/js/app/components/componentContext/ComponentContext.ts +++ b/server/sonar-web/src/main/js/app/components/componentContext/ComponentContext.ts @@ -23,4 +23,5 @@ import { ComponentContextShape } from '../../../types/component'; export const ComponentContext = React.createContext<ComponentContextShape>({ onComponentChange: noop, + fetchComponent: () => new Promise(noop), }); |