mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: address review — null guard on ColumnComponent and make supportedColumns reactive
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
d464257921
commit
ecf3a8a170
+1
-1
@@ -56,7 +56,7 @@
|
||||
} = $props();
|
||||
|
||||
const tableId = page.params.table;
|
||||
const supportedColumns = getSupportedColumns(page.data.database?.type as DatabaseType);
|
||||
const supportedColumns = $derived(getSupportedColumns(page.data.database?.type as DatabaseType));
|
||||
const minimumUserColumnWidth = 168;
|
||||
|
||||
function getUserColumnWidth(
|
||||
|
||||
+2
-1
@@ -55,7 +55,8 @@
|
||||
|
||||
let availableOptions = $derived(getSupportedColumns(databaseType));
|
||||
let ColumnComponent = $derived(
|
||||
availableOptions.find((option) => option.name === selectedOption).component
|
||||
(availableOptions.find((option) => option.name === selectedOption) ?? availableOptions[0])
|
||||
.component
|
||||
);
|
||||
|
||||
function init() {
|
||||
|
||||
Reference in New Issue
Block a user