Fix reactive variables to make project navigation work

This commit is contained in:
Mattias Granlund 2023-11-16 11:20:39 +01:00
parent 61eb145215
commit 52a028440f
2 changed files with 9 additions and 11 deletions

View File

@ -28,7 +28,7 @@ export class VirtualBranchService {
baseBranch$: Observable<any>
) {
this.branches$ = merge(deltas$, sessionId$, head$, baseBranch$).pipe(
debounceTime(1000),
debounceTime(100), // TODO: Remove this when we subscribe to vbranches
combineLatestWith(this.reload$),
switchMap(() => {
console.log('reloading branches');

View File

@ -5,18 +5,16 @@
import Board from './Board.svelte';
export let data: PageData;
let {
projectId,
cloud,
baseBranchService,
branchController,
githubContext$,
projectService,
vbranchService,
user$
} = data;
$: vbranchService = data.vbranchService;
$: githubContext$ = data.githubContext$;
$: branchController = data.branchController;
$: projectService = data.projectService;
$: baseBranchService = data.baseBranchService;
$: cloud = data.cloud;
$: projectId = data.projectId;
$: base$ = baseBranchService.base$;
$: user$ = data.user$;
$: project$ = projectService.getProject(projectId);
$: branches$ = vbranchService.branches$;