fix: missing icons on sheet view and elements support for enums.

This commit is contained in:
Darshan
2025-09-25 10:12:39 +05:30
parent 710543765a
commit 6df5b0de4d
2 changed files with 5 additions and 1 deletions
@@ -465,7 +465,7 @@
case 'enum':
columnResult = await client.tablesDB.createEnumColumn({
...baseParams,
elements: []
elements: column.elements ?? []
});
break;
default:
@@ -21,6 +21,7 @@
import SpreadsheetContainer from './spreadsheet.svelte';
import { onDestroy, onMount } from 'svelte';
import { debounce } from '$lib/helpers/debounce';
import { columnOptions } from '../columns/store';
type Mode = 'rows' | 'rows-filtered' | 'indexes';
@@ -95,6 +96,9 @@
...col,
width: 180,
hide: false,
icon: columnOptions.find(
(col) => col.type === col?.type
)?.icon,
...baseColProps
}));