Skip to content

Commit f859133

Browse files
authored
FIxed error while trying to retrieve throughput of container of local instance with old API (#21)
1 parent 022119f commit f859133

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reverse_engineering/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,13 +571,13 @@ function getOfferProps(offer) {
571571
if (isAutopilotOn) {
572572
return {
573573
autopilot: true,
574-
throughput: offer.content.offerAutopilotSettings.maximumTierThroughput,
574+
throughput: _.get(offer, 'content.offerAutopilotSettings.maximumTierThroughput', ''),
575575
capacityMode: 'Provisioned throughput',
576576
};
577577
}
578578
return {
579579
autopilot: false,
580-
throughput: offer ? offer.content.offerThroughput : '',
580+
throughput: _.get(offer, 'content.offerThroughput', ''),
581581
capacityMode: 'Provisioned throughput',
582582
};
583583
}

0 commit comments

Comments
 (0)