File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -340,11 +340,6 @@ export function connectCommand(): Command {
340340 name : `${ hasura . name } (${ hasura . uniqueName } )` ,
341341 } ) ) ;
342342
343- console . log (
344- hasuras ,
345- configApplication ?. hasuraGql ,
346- hasuras . find ( ( h ) => h . value . gqlUrl === configApplication ?. hasuraGql ) ?. value ,
347- ) ;
348343 const hasuraUrl = await coerceSelect ( {
349344 choices : hasuras ,
350345 noneOption : true ,
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ export async function coerceSelect<Value>(params: Prettify<CoerceSelectParams<Va
114114 typeof value === "string"
115115 ? value
116116 : value && typeof value === "object"
117- ? ( ( value as { name ?: string } ) . name ?? "" )
117+ ? ( ( value as { name ?: string } ) . name ?? ( value as { gqlUrl ?: string } ) . gqlUrl ?? "" )
118118 : ""
119119 } )`,
120120 default : false ,
You can’t perform that action at this time.
0 commit comments