Skip to content

Commit efb2d0e

Browse files
authored
Merge pull request #2590 from appwrite/add-default-data
2 parents eecf4e9 + 85b3662 commit efb2d0e

File tree

1 file changed

+11
-3
lines changed
  • src/routes/(console)/project-[region]-[project]/databases/database-[database]/(suggestions)

1 file changed

+11
-3
lines changed

src/routes/(console)/project-[region]-[project]/databases/database-[database]/(suggestions)/empty.svelte

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@
635635
try {
636636
if (VARS.MOCK_AI_SUGGESTIONS) {
637637
/* animation */
638-
await sleep(NOTIFICATION_AND_MOCK_DELAY * 100);
638+
await sleep(NOTIFICATION_AND_MOCK_DELAY);
639639
suggestedColumns = mockSuggestions;
640640
} else {
641641
suggestedColumns = (await sdk
@@ -1772,7 +1772,15 @@
17721772
}
17731773
}}>
17741774
{#if !column.custom && row}
1775-
<span class="u-trim fake-cell">{row[column.id] ?? ''}</span>
1775+
{@const rowData = row[column.id]}
1776+
{@const isNullOrUndefined = rowData === null || typeof rowData === 'undefined'}
1777+
<span class="u-trim suggestions-empty-fake-cell">
1778+
{#if isNullOrUndefined}
1779+
<Badge variant="secondary" content="NULL" size="xs" />
1780+
{:else}
1781+
{rowData}
1782+
{/if}
1783+
</span>
17761784
{/if}
17771785
</button>
17781786
{/snippet}
@@ -1990,7 +1998,7 @@
19901998
height: 100%;
19911999
cursor: pointer;
19922000
1993-
& :global(.fake-cell) {
2001+
& :global(.suggestions-empty-fake-cell) {
19942002
min-height: 40px;
19952003
position: relative;
19962004
align-items: center;

0 commit comments

Comments
 (0)