Fix Navigator crashing on ledgers with no packages (#3400)

This commit is contained in:
Robert Autenrieth 2019-11-18 17:15:57 +01:00 committed by mergify[bot]
parent d776489820
commit 388b204e92
2 changed files with 3 additions and 4 deletions

View File

@ -52,12 +52,10 @@ case class PackageRegistry(
}
val newTemplates = newPackages
.map(_._2.templates)
.reduce(_ ++ _)
.flatMap(_._2.templates)
val newTypeDefs = newPackages
.map(_._2.typeDefs)
.reduce(_ ++ _)
.flatMap(_._2.typeDefs)
copy(
packages = packages ++ newPackages,

View File

@ -15,3 +15,4 @@ HEAD — ongoing
that allows you to mark contracts as pending. Those contracts will
be automatically filtered from the result of ``getContracts`` until
we receive the corresponding completion/transaction.
- [Navigator] Fixed a bug where Navigator becomes unresponsive if the ledger does not contain any DAML packages.