feat: do not require cluster id to exist for node

This commit is contained in:
Oscar Lorentzon 2023-10-13 11:33:38 -07:00
parent 5ea757ae5b
commit bf5464017a

View File

@ -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)) {