From 47622735c7f14a5f73db1af5defcb1fdc8c60e60 Mon Sep 17 00:00:00 2001 From: xphoniex Date: Mon, 29 May 2023 13:02:44 +0000 Subject: [PATCH] Use `description` from first `revisions` of `Patch` Signed-off-by: xphoniex --- httpd-client/lib/project/patch.ts | 2 -- src/views/projects/Patch.svelte | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/httpd-client/lib/project/patch.ts b/httpd-client/lib/project/patch.ts index cf4cf11bf..d5a1a9247 100644 --- a/httpd-client/lib/project/patch.ts +++ b/httpd-client/lib/project/patch.ts @@ -128,7 +128,6 @@ export interface Patch { id: string; author: { id: string; alias?: string }; title: string; - description: string; state: PatchState; target: string; tags: string[]; @@ -141,7 +140,6 @@ export const patchSchema = strictObject({ id: string(), author: strictObject({ id: string(), alias: string().optional() }), title: string(), - description: string(), state: patchStateSchema, target: string(), tags: array(string()), diff --git a/src/views/projects/Patch.svelte b/src/views/projects/Patch.svelte index bc972469f..d07760b66 100644 --- a/src/views/projects/Patch.svelte +++ b/src/views/projects/Patch.svelte @@ -268,9 +268,9 @@ - {#if patch.description} + {#if patch.revisions[0].description}