From f71a2062eb6d0f355792bc8b406583ed54371ccb Mon Sep 17 00:00:00 2001 From: Victor Ubahakwe Date: Wed, 11 Jun 2025 09:29:37 +0100 Subject: [PATCH] VQB: Allow custom table names in TableSelector (#106420) * feat(sql): allow custom table names in TableSelector Restores the ability to enter custom table names not present in the database by adding `allowCustomValue` to the Select component. This matches previous functionality where users could manually specify table names not returned by db.tables(). fixes: #106348 * empty line 45 --- packages/grafana-sql/src/components/TableSelector.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/grafana-sql/src/components/TableSelector.tsx b/packages/grafana-sql/src/components/TableSelector.tsx index 9801f98d12c..fb1bac8e71f 100644 --- a/packages/grafana-sql/src/components/TableSelector.tsx +++ b/packages/grafana-sql/src/components/TableSelector.tsx @@ -38,6 +38,7 @@ export const TableSelector = ({ db, dataset, table, className, onChange, inputId isLoading={state.loading} menuShouldPortal={true} placeholder={state.loading ? 'Loading tables' : 'Select table'} + allowCustomValue={true} /> ); };