From c6aae23ef1df2e8ce05e032706deef6f0855dcd2 Mon Sep 17 00:00:00 2001 From: Darshan Date: Wed, 12 Nov 2025 16:02:15 +0530 Subject: [PATCH] add: default null badge; update: cell class name. --- .../database-[database]/(suggestions)/empty.svelte | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/routes/(console)/project-[region]-[project]/databases/database-[database]/(suggestions)/empty.svelte b/src/routes/(console)/project-[region]-[project]/databases/database-[database]/(suggestions)/empty.svelte index 7a5602eb7..e249da70c 100644 --- a/src/routes/(console)/project-[region]-[project]/databases/database-[database]/(suggestions)/empty.svelte +++ b/src/routes/(console)/project-[region]-[project]/databases/database-[database]/(suggestions)/empty.svelte @@ -635,7 +635,7 @@ try { if (VARS.MOCK_AI_SUGGESTIONS) { /* animation */ - await sleep(NOTIFICATION_AND_MOCK_DELAY * 100); + await sleep(NOTIFICATION_AND_MOCK_DELAY); suggestedColumns = mockSuggestions; } else { suggestedColumns = (await sdk @@ -1772,7 +1772,15 @@ } }}> {#if !column.custom && row} - {row[column.id] ?? ''} + {@const rowData = row[column.id]} + {@const isNullOrUndefined = rowData === null || typeof rowData === 'object'} + + {#if isNullOrUndefined} + + {:else} + {rowData} + {/if} + {/if} {/snippet} @@ -1990,7 +1998,7 @@ height: 100%; cursor: pointer; - & :global(.fake-cell) { + & :global(.suggestions-empty-fake-cell) { min-height: 40px; position: relative; align-items: center;