From f4a9a0af7a2de6a01c4b99d3076d17e4204c73df Mon Sep 17 00:00:00 2001 From: Colin Date: Fri, 8 Mar 2024 13:33:47 -0500 Subject: [PATCH] Parenthesize expression for assemblyNames --- products/jbrowse-cli/src/commands/add-connection.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/products/jbrowse-cli/src/commands/add-connection.ts b/products/jbrowse-cli/src/commands/add-connection.ts index 038ddc279d..743b875d4a 100644 --- a/products/jbrowse-cli/src/commands/add-connection.ts +++ b/products/jbrowse-cli/src/commands/add-connection.ts @@ -137,9 +137,10 @@ export default class AddConnection extends JBrowseCommand { : {}), connectionId: id, assemblyNames: - assemblyNames || type === 'JBrowse1Connection' + assemblyNames || + (type === 'JBrowse1Connection' ? [configContents.assemblies[0]?.name] - : undefined, + : undefined), ...(config ? parseJSON(config) : {}), }