mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: icon.
fix: wrong format on event, temp patch.
This commit is contained in:
@@ -20,6 +20,18 @@
|
||||
|
||||
let error: string;
|
||||
|
||||
// TODO: Remove this once Pink Svelte is fixed
|
||||
$: if (value !== null && typeof value === 'object' && 'target' in (value as object)) {
|
||||
const event = value as Event;
|
||||
const target = event.target as HTMLInputElement;
|
||||
if (target?.value !== undefined) {
|
||||
const parsedValue = target.value === '' ? null : Number(target.value);
|
||||
value = Number.isNaN(parsedValue) ? null : parsedValue;
|
||||
} else {
|
||||
value = null;
|
||||
}
|
||||
}
|
||||
|
||||
const handleInvalid = (event: Event & { currentTarget: EventTarget & HTMLInputElement }) => {
|
||||
event.preventDefault();
|
||||
|
||||
|
||||
+5
-1
@@ -393,7 +393,11 @@
|
||||
|
||||
{#each updatedColumnsForSheet as column, index (column.key)}
|
||||
{@const isId = column.key === '$id'}
|
||||
{@const option = columnOptions.find((option) => option.type === column.type)}
|
||||
{@const option = columnOptions.find(
|
||||
(option) =>
|
||||
option.type === column.type &&
|
||||
option.format === ('format' in column ? column.format : undefined)
|
||||
)}
|
||||
{@const isSelectable =
|
||||
column['system'] || column.type === 'relationship' ? 'disabled' : true}
|
||||
<Spreadsheet.Row.Base {root} select={isSelectable} id={column.key}>
|
||||
|
||||
Reference in New Issue
Block a user