From 565e44935df65b0369b87f1c939a4692e5143473 Mon Sep 17 00:00:00 2001 From: Oscar Lorentzon Date: Wed, 8 Nov 2023 09:50:17 -0800 Subject: [PATCH] feat: use empty array if camera params not set --- src/api/provider/GraphConverter.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/provider/GraphConverter.ts b/src/api/provider/GraphConverter.ts index 8adf223c..8bb8fe42 100644 --- a/src/api/provider/GraphConverter.ts +++ b/src/api/provider/GraphConverter.ts @@ -151,6 +151,7 @@ export class GraphConverter { source: GraphSpatialImageEnt) : SpatialImageEnt { source.camera_type = convertCameraType(source.camera_type); + source.camera_parameters = source.camera_parameters ?? []; source.merge_id = source.merge_cc ? source.merge_cc.toString() : null; source.private = null; const thumbUrl = source.camera_type === 'spherical' ?