change(web): adjsut .edgeKey, .splitClusteringKey for insert-edge handling
Some checks failed
Keyman Build Summary / Summarize build status checks (push) Has been cancelled

This commit is contained in:
Joshua Horton 2026-03-11 10:43:37 -05:00
parent 5775854855
commit 9bd0afa5a0

View file

@ -530,9 +530,7 @@ export abstract class SearchQuotientSpur extends SearchQuotientNode {
* ancestry properly handle quotient-path variance in unit tests.
*/
get edgeKey(): string {
const inputSrc = this.inputSource;
const segment = inputSrc.segment;
return `E${inputSrc.subsetId}:${segment.start}${segment.end !== undefined ? `-${segment.end}` : ''}`;
return `E${this.inputSource?.subsetId ?? ''}:${this.splitClusteringKey}`;
}
isSameNode(space: SearchQuotientNode): boolean {
@ -559,11 +557,7 @@ export abstract class SearchQuotientSpur extends SearchQuotientNode {
// Used to identify cluster-compatible components of SearchPaths during SearchCluster split operations.
get splitClusteringKey(): string {
const pathSrc = this.inputSource;
if(!pathSrc) {
return '';
}
return `${pathSrc.segment.start}${pathSrc.segment.end == undefined ? '' : `-${pathSrc.segment.end}`}`;
const spurSeg = this.inputSource?.segment;
return `${spurSeg?.start ?? 0}${spurSeg?.end == undefined ? '' : `-${spurSeg.end}`}`;
}
}