Skip to content

Commit

Permalink
feat: use empty array if camera params not set
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarlorentzon committed Nov 15, 2023
1 parent 01673b1 commit 565e449
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/provider/GraphConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' ?
Expand Down

0 comments on commit 565e449

Please sign in to comment.