Merge pull request #2855 from appwrite/fix-dateime-format

fix format issue
This commit is contained in:
Eldad A. Fux
2026-02-15 10:43:56 +01:00
committed by GitHub
2 changed files with 12 additions and 8 deletions
@@ -227,8 +227,11 @@
size="s"
secondary
class="small-button-dimensions"
disabled={!(hasColumns && hasValidColumns && data.rows.total) ||
disableButton}
disabled={!(
hasColumns &&
hasValidColumns &&
data.rows?.total
) || disableButton}
on:click={() => {
trackEvent(Click.DatabaseExportCsv);
goto(getTableExportUrl());
@@ -239,13 +242,13 @@
<svelte:fragment slot="tooltip">Export CSV</svelte:fragment>
</Tooltip>
<Tooltip disabled={isRefreshing || !data.rows.total} placement="top">
<Tooltip disabled={isRefreshing || !data.rows?.total} placement="top">
<Button
icon
size="s"
secondary
disabled={isRefreshing ||
!data.rows.total ||
!data.rows?.total ||
!(hasColumns && hasValidColumns) ||
disableButton}
class="small-button-dimensions"
@@ -299,7 +302,7 @@
<div class="databases-spreadsheet">
{#if hasColumns && hasValidColumns && $tableColumnSuggestions.force !== true}
{#if data.rows.total}
{#if data.rows?.total}
<Divider />
<SpreadSheet {data} bind:showRowCreateSheet={$showRowCreateSheet} />
{:else if $hasPageQueries}
@@ -347,7 +350,7 @@
</EmptySheet>
{/if}
{:else if isCloud && canShowSuggestionsSheet}
<SuggestionsEmptySheet userColumns={$tableColumns} userDataRows={data.rows.rows} />
<SuggestionsEmptySheet userColumns={$tableColumns} userDataRows={data.rows?.rows} />
{:else}
<EmptySheet mode="rows" showActions={$canWriteTables} title="You have no columns yet">
{#snippet subtitle()}
@@ -396,7 +396,8 @@
{@const option = columnOptions.find(
(option) =>
option.type === column.type &&
option.format === ('format' in column ? column.format : undefined)
option.format ===
('format' in column && column.format ? column.format : undefined)
)}
{@const isSelectable =
column['system'] || column.type === 'relationship' ? 'disabled' : true}
@@ -425,7 +426,7 @@
{:else if column.key === '$id'}
<Icon icon={IconFingerPrint} size="s" />
{:else}
<Icon icon={option.icon} size="s" />
<Icon icon={option?.icon ?? IconViewList} size="s" />
{/if}
<Layout.Stack