UBERF-4631: Fix issue when link preview in activity displayed as #undefined (#4435)

Signed-off-by: Artyom Grigorovich <grigorovichartyom@gmail.com>
This commit is contained in:
agrigorovich-xored 2024-01-25 19:16:20 +01:00 committed by GitHub
parent 5d9ef96f69
commit c4e92bbf47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,9 +63,10 @@
}
</script>
{#await getData(href) then data}
{#if data.number !== undefined && data.title !== undefined}
<div class="flex mt-2">
<div class="line" style="background-color: {getPlatformColor(7, $themeStore.dark)}" />
{#await getData(href) then data}
<div class="flex-col">
<a class="fs-title mb-1" {href}>#{data.number} {data.title}</a>
{#if data.body}
@ -98,8 +99,9 @@
{/if}
</div>
</div>
{/await}
</div>
{/if}
{/await}
<style lang="scss">
.line {