Skip to content

Commit

Permalink
feat: do not require cluster id to exist for node
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarlorentzon committed Nov 15, 2023
1 parent 5ea757a commit bf54640
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/graph/Graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,8 @@ export class Graph {
private _addClusterNode(node: Image): void {
const clusterId = node.clusterId;
if (clusterId == null) {
throw new GraphMapillaryError(`Image does not have cluster (${node.id}).`);
console.warn(`Cannot set cluster node, cluster ID is undefined for node ${node.id}.`);
return;
}

if (!this._clusterNodes.has(clusterId)) {
Expand Down

0 comments on commit bf54640

Please sign in to comment.