From 7db9de75b3222f375df87bf5c4888cb18a30d7c8 Mon Sep 17 00:00:00 2001 From: Alex Tideman Date: Thu, 29 Aug 2024 09:23:14 -0500 Subject: [PATCH] Add select-all to code-block (#2292) --- src/lib/components/event/event-details-row-expanded.svelte | 2 +- src/lib/utilities/get-single-attribute-for-event.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/event/event-details-row-expanded.svelte b/src/lib/components/event/event-details-row-expanded.svelte index 3bf53ec2d..2371df89f 100644 --- a/src/lib/components/event/event-details-row-expanded.svelte +++ b/src/lib/components/event/event-details-row-expanded.svelte @@ -146,7 +146,7 @@ } .code-block-row { - @apply block w-full py-1 text-left; + @apply block w-full select-all py-1 text-left; } .detail-row { diff --git a/src/lib/utilities/get-single-attribute-for-event.ts b/src/lib/utilities/get-single-attribute-for-event.ts index 2daa776aa..758d079d8 100644 --- a/src/lib/utilities/get-single-attribute-for-event.ts +++ b/src/lib/utilities/get-single-attribute-for-event.ts @@ -284,7 +284,7 @@ export const getEventSummaryAttribute = ( } } - return first; + return first || emptyAttribute; }; export const getPendingActivitySummaryAttribute = (