@@ -59,13 +59,18 @@ export default function TableListView() {
59
59
} ;
60
60
61
61
const getTables = async ( labels : string [ ] = [ ] ) => {
62
- const addPrefix = ( str : string ) => {
62
+ const addPrefix = ( str ?: string ) => {
63
+ if ( ! str ) return '' ;
63
64
return str . includes ( '*' ) || str . length === 0 ? str : '*' + str + '*' ;
64
65
} ;
65
66
setLoading ( true ) ;
67
+ console . log (
68
+ connection ? addPrefix ( connection ) : addPrefix ( searchFilters . connection ) ,
69
+ schema ? addPrefix ( schema ) : addPrefix ( searchFilters . schema )
70
+ ) ;
66
71
const res = await SearchApiClient . findTables (
67
- connection ?? addPrefix ( searchFilters . connection ?? '' ) ,
68
- schema ?? addPrefix ( searchFilters . schema ?? '' ) ,
72
+ connection ? addPrefix ( connection ) : addPrefix ( searchFilters . connection ) ,
73
+ schema ? addPrefix ( schema ) : addPrefix ( searchFilters . schema ) ,
69
74
addPrefix ( searchFilters . table ?? '' ) ,
70
75
labels ,
71
76
filters . page ,
@@ -133,15 +138,16 @@ export default function TableListView() {
133
138
134
139
return (
135
140
< >
136
- < div className = "flex items-center justify-between bg-white w-full" >
137
- < div className = "flex items-center gap-x-4 mb-4 mt-5 px-4" >
141
+ < div className = "flex items-center justify-between bg-white w-full relative " >
142
+ < div className = "flex items-center gap-x-4 mb-4 mt-4 px-4" >
138
143
{ ! connection && (
139
144
< Input
140
145
label = "Connection name"
141
146
value = { searchFilters . connection }
142
147
onChange = { ( e ) =>
143
148
onChangeSearchFilters ( { connection : e . target . value } )
144
149
}
150
+ className = "z-[100]"
145
151
/>
146
152
) }
147
153
{ ! schema && (
@@ -151,12 +157,14 @@ export default function TableListView() {
151
157
onChange = { ( e ) =>
152
158
onChangeSearchFilters ( { schema : e . target . value } )
153
159
}
160
+ className = "z-[100]"
154
161
/>
155
162
) }
156
163
< Input
157
164
label = "Table name"
158
165
value = { searchFilters . table }
159
166
onChange = { ( e ) => onChangeSearchFilters ( { table : e . target . value } ) }
167
+ className = "z-[100]"
160
168
/>
161
169
< Button
162
170
label = "Search"
@@ -169,7 +177,7 @@ export default function TableListView() {
169
177
) ;
170
178
} }
171
179
color = "primary"
172
- className = "mt-5"
180
+ className = "mt-5 z-[100] "
173
181
/>
174
182
</ div >
175
183
< Button
0 commit comments