Explorar o código

Enforce onboarding check on project change

jnfrati %!s(int64=5) %!d(string=hai) anos
pai
achega
c2ac2bf75e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      dashboard/src/main/home/Home.tsx

+ 2 - 1
dashboard/src/main/home/Home.tsx

@@ -234,6 +234,7 @@ class Home extends Component<PropsType, StateType> {
   // 3. Make sure initializing from URL (DO oauth) displays the appropriate initial view
   // 3. Make sure initializing from URL (DO oauth) displays the appropriate initial view
   componentDidUpdate(prevProps: PropsType) {
   componentDidUpdate(prevProps: PropsType) {
     if (prevProps.currentProject?.id !== this.props.currentProject?.id) {
     if (prevProps.currentProject?.id !== this.props.currentProject?.id) {
+      this.checkOnboarding();
       this.checkIfProjectHasBilling(this?.context?.currentProject?.id)
       this.checkIfProjectHasBilling(this?.context?.currentProject?.id)
         .then((isBillingEnabled) => {
         .then((isBillingEnabled) => {
           if (isBillingEnabled) {
           if (isBillingEnabled) {
@@ -333,7 +334,7 @@ class Home extends Component<PropsType, StateType> {
   };
   };
 
 
   redirectToOnboarding = () => {
   redirectToOnboarding = () => {
-    pushFiltered(this.props, "/onboarding", ["project_id"]);
+    pushFiltered(this.props, "/onboarding", []);
   };
   };
 
 
   render() {
   render() {