Skip to content

Commit 183fdc8

Browse files
committed
Add check for optional params
1 parent 2c1850c commit 183fdc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layer/BYOCLayer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class BYOCLayer extends AbstractSentinelHubV3Layer {
147147
): Promise<ProcessingPayload> {
148148
await this.updateLayerFromServiceIfNeeded(reqConfig);
149149

150-
if (this.shouldUseLowResolutionCollection(params.bbox, payload.output.width)) {
150+
if (this.shouldUseLowResolutionCollection(params?.bbox, payload.output.width)) {
151151
payload.input.data[datasetSeqNo].type = this.getTypeIdLowRes();
152152
} else {
153153
payload.input.data[datasetSeqNo].type = this.getTypeId();

0 commit comments

Comments
 (0)