Skip to content

Commit

Permalink
Add check for optional params
Browse files Browse the repository at this point in the history
  • Loading branch information
mitjak committed Feb 6, 2024
1 parent 2c1850c commit 183fdc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layer/BYOCLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class BYOCLayer extends AbstractSentinelHubV3Layer {
): Promise<ProcessingPayload> {
await this.updateLayerFromServiceIfNeeded(reqConfig);

if (this.shouldUseLowResolutionCollection(params.bbox, payload.output.width)) {
if (this.shouldUseLowResolutionCollection(params?.bbox, payload.output.width)) {
payload.input.data[datasetSeqNo].type = this.getTypeIdLowRes();
} else {
payload.input.data[datasetSeqNo].type = this.getTypeId();
Expand Down

0 comments on commit 183fdc8

Please sign in to comment.