diff --git a/src-tauri/bindings/RepoInfo.ts b/src-tauri/bindings/RepoInfo.ts index 629f7e2..f67a3cc 100644 --- a/src-tauri/bindings/RepoInfo.ts +++ b/src-tauri/bindings/RepoInfo.ts @@ -1,4 +1,5 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { Author } from "./Author"; import type { SupportedPayloads } from "./SupportedPayloads"; /** @@ -6,7 +7,7 @@ import type { SupportedPayloads } from "./SupportedPayloads"; */ export type RepoInfo = { payloads: SupportedPayloads; - delegates: ({ id: string } | { id: string; alias?: string })[]; + delegates: Array; threshold: number; visibility: { type: "public" } | { type: "private"; allow?: string[] }; rid: string; diff --git a/src-tauri/src/types/repo.rs b/src-tauri/src/types/repo.rs index 401404c..4f1925e 100644 --- a/src-tauri/src/types/repo.rs +++ b/src-tauri/src/types/repo.rs @@ -11,7 +11,7 @@ use super::cobs::Author; #[ts(export)] pub struct RepoInfo { pub payloads: SupportedPayloads, - #[ts(type = "({ id: string } | { id: string, alias?: string })[]")] + #[ts(as = "Vec")] pub delegates: Vec, pub threshold: usize, #[ts(type = "{ type: 'public' } | { type: 'private', allow?: string[] }")] diff --git a/src/components/RepoCard.svelte b/src/components/RepoCard.svelte index 432d604..c9d225a 100644 --- a/src/components/RepoCard.svelte +++ b/src/components/RepoCard.svelte @@ -53,7 +53,7 @@ {/if} - {#if repo.delegates.find(x => x.id === selfDid)} + {#if repo.delegates.find(x => x.did === selfDid)}