Skip to content

Commit

Permalink
Parenthesize expression for assemblyNames
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Mar 8, 2024
1 parent 19e93e9 commit f4a9a0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions products/jbrowse-cli/src/commands/add-connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) : {}),
}

Expand Down

0 comments on commit f4a9a0a

Please sign in to comment.