mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
Fix Navigator crashing on ledgers with no packages (#3400)
This commit is contained in:
parent
d776489820
commit
388b204e92
@ -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,
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user