mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 18:20:30 +08:00
Fix anchor lookup in project view
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
import { formatOrg, formatSeedId, isRadicleId } from '@app/utils';
|
||||
import { getOid } from '@app/project';
|
||||
import { Seed } from '@app/base/seeds/Seed';
|
||||
import { getAllAnchors } from '@app/anchors';
|
||||
|
||||
import Header from '@app/base/projects/Header.svelte';
|
||||
import ProjectContentRoutes from '@app/base/projects/ProjectContentRoutes.svelte';
|
||||
@@ -41,7 +40,8 @@
|
||||
const cfg = seedInstance && seedInstance.valid ? config.withSeed(seedInstance) : config;
|
||||
const info = await proj.getInfo(id, cfg);
|
||||
const urn = isRadicleId(id) ? id : info.urn;
|
||||
const anchors = await getAllAnchors(config, urn, profile?.anchorsAccount ?? addressOrName);
|
||||
const anchors = profile ? await profile.confirmedProjectAnchors(urn, config) : [];
|
||||
|
||||
let branches = Array([info.defaultBranch, info.head]) as [string, string][];
|
||||
let peers: proj.Peer[] = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user