Skip to content

Commit

Permalink
chor: issue when in dev-mode that caused PM to crash
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed May 10, 2023
1 parent 7f3cf73 commit f116c8f
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,15 @@ export class CorePackageInfoAccessorHandle<Metadata> extends GenericAccessorHand
actualSourceVersion,
expectTargetVersion
)
const packageInfos = (await this.worker.sendMessageToManager(exp.managerId, {
type: 'fetchPackageInfoMetadata',
arguments: [infoType, exp.fromPackages.map((p) => p.id)],
})) as {
const packageInfos: {
packageId: string
expectedContentVersionHash: string
actualContentVersionHash: string
}[]
}[] =
(await this.worker.sendMessageToManager(exp.managerId, {
type: 'fetchPackageInfoMetadata',
arguments: [infoType, exp.fromPackages.map((p) => p.id)],
})) || []

for (const fromPackage of exp.fromPackages) {
const packageInfo = packageInfos.find((p) => p.packageId === fromPackage.id)
Expand Down

0 comments on commit f116c8f

Please sign in to comment.