Use description from first revisions of Patch

Signed-off-by: xphoniex <dj.2dixx@gmail.com>
This commit is contained in:
xphoniex
2023-05-29 13:02:44 +00:00
parent da361fb399
commit 47622735c7
2 changed files with 2 additions and 4 deletions
-2
View File
@@ -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()),
+2 -2
View File
@@ -268,9 +268,9 @@
</Badge>
</svelte:fragment>
<svelte:fragment slot="description">
{#if patch.description}
{#if patch.revisions[0].description}
<Markdown
content={patch.description}
content={patch.revisions[0].description}
rawPath={utils.getRawBasePath(
projectId,
baseUrl,