mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-16 21:35:10 +00:00
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:
parent
5d9ef96f69
commit
c4e92bbf47
@ -63,9 +63,10 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="flex mt-2">
|
{#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)}" />
|
<div class="line" style="background-color: {getPlatformColor(7, $themeStore.dark)}" />
|
||||||
{#await getData(href) then data}
|
|
||||||
<div class="flex-col">
|
<div class="flex-col">
|
||||||
<a class="fs-title mb-1" {href}>#{data.number} {data.title}</a>
|
<a class="fs-title mb-1" {href}>#{data.number} {data.title}</a>
|
||||||
{#if data.body}
|
{#if data.body}
|
||||||
@ -98,8 +99,9 @@
|
|||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/await}
|
</div>
|
||||||
</div>
|
{/if}
|
||||||
|
{/await}
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.line {
|
.line {
|
||||||
|
Loading…
Reference in New Issue
Block a user