Skip to content

Commit

Permalink
Merge pull request #4281 from systeminit/jobelenus/stop-calling-statu…
Browse files Browse the repository at this point in the history
…s-with-base

Stop calling status_with_base
  • Loading branch information
jobelenus authored Aug 6, 2024
2 parents 40f47c8 + 79fae0c commit 4655c4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/web/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { posthog } from "@/utils/posthog";
import { useAuthStore } from "./store/auth.store";
import { useRouterStore } from "./store/router.store";
import { isDevMode } from "./utils/debug";
import { useChangeSetsStore } from "./store/change_sets.store";
// import { useChangeSetsStore } from "./store/change_sets.store";

// Cannot use inside the template directly.
const AUTH_PORTAL_URL = import.meta.env.VITE_AUTH_PORTAL_URL;
Expand Down Expand Up @@ -189,7 +189,7 @@ router.beforeResolve((to) => {

// whenever we navigate across changesets we need to stay
// up to date with the status against base
if ("changeSetId" in to.params) {
/* if ("changeSetId" in to.params) {
const changeSetStore = useChangeSetsStore();
const changeSetId = to.params.changeSetId;
if (
Expand All @@ -199,7 +199,7 @@ router.beforeResolve((to) => {
!Array.isArray(changeSetId)
)
changeSetStore.FETCH_STATUS_WITH_BASE(changeSetId);
}
} */
});

router.afterEach((to) => {
Expand Down
4 changes: 2 additions & 2 deletions app/web/src/store/change_sets.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ export function useChangeSetsStore() {
}

// TODO: jobelenus, I'm worried the WsEvent fires before commit happens
if (this.selectedChangeSetId && !this.headSelected)
this.FETCH_STATUS_WITH_BASE(this.selectedChangeSetId);
/* if (this.selectedChangeSetId && !this.headSelected)
this.FETCH_STATUS_WITH_BASE(this.selectedChangeSetId); */

// did head get an update and I'm not on head?
// and make sure I'm not moving to head
Expand Down

0 comments on commit 4655c4b

Please sign in to comment.