Skip to content

Commit 592bac7

Browse files
committed
fix: display of url
1 parent d8ccbb5 commit 592bac7

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

packages/cli/src/commands/connect.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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,

packages/cli/src/lib/coerce.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)