From df426519e4d913bb7a92180f398b5913485d9af1 Mon Sep 17 00:00:00 2001
From: Pranciskus Ambrazas
Date: Fri, 3 May 2024 12:05:34 +0300
Subject: [PATCH] damn. fix
---
services/events.service.ts | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/services/events.service.ts b/services/events.service.ts
index cc64747..e4f147b 100644
--- a/services/events.service.ts
+++ b/services/events.service.ts
@@ -38,11 +38,7 @@ export type EventBodyJSON = {
};
export function toEventBodyMarkdown(data: EventBodyJSON[]) {
- return data
- .map((i) => {
- `**${i.title}**: ${i.value || ''}`;
- })
- .join('\n\n');
+ return data.map((i) => `**${i.title}**: ${i.value || ''}`).join('\n\n');
}
interface Populates extends CommonPopulates {