diff --git a/src/routes/repo/[projectId]/+page.svelte b/src/routes/repo/[projectId]/+page.svelte
index e5aa5ac3b..d725a276b 100644
--- a/src/routes/repo/[projectId]/+page.svelte
+++ b/src/routes/repo/[projectId]/+page.svelte
@@ -4,12 +4,18 @@
import type { PageData } from './$types';
import { getVirtualBranches } from './vbranches';
import { getTarget } from './targetData';
+ import { getRemoteBranches } from './remoteBranches';
import { Value } from 'svelte-loadable-store';
import { Button } from '$lib/components';
import { error } from '$lib/toasts';
export let data: PageData;
- let { projectId, project, remoteBranches } = data;
+ let { projectId, remoteBranchNames, project } = data;
+ const remoteBranchOperations = getRemoteBranches(projectId);
+ $: remoteBranches =
+ !$remoteBranchOperations.isLoading && !Value.isError($remoteBranchOperations.value)
+ ? $remoteBranchOperations.value
+ : [];
const targetOperations = getTarget(projectId);
$: target =
!$targetOperations.isLoading && !Value.isError($targetOperations.value)
@@ -38,7 +44,14 @@
{#if target}
-
+
{:else}
@@ -48,11 +61,11 @@
You need to set your target before you can start working on your project.
- {#if remoteBranches.length === 0}
+ {#if remoteBranchNames.length === 0}