fix(segmentation): failing to render SEG because it was on default tool group (#3222)

* fix: Segmentation service fixes for secondary volumes

* Remove toolgroupID in promptSeg
This commit is contained in:
Bill Wallace authored and GitHub committed 2023-03-10 13:57:23 -05:00
1 parent 3f20b41c17
commit b7fff77e17
18 files changed
+97 -117

No files matched your search

@@ -234,19 +234,16 @@ export default class CustomizationService extends PubSubService {
}
/**
* A single reference is either an an array, or a single customization value,
* whose id is the id in the object, or the parent id.
* This allows for general use to register customizationModule entries.
* A single reference is either an string to be loaded from a module,
* or a customization itself.
*/
addReference(
value?: Obj | Obj[] | string,
isGlobal = true,
id?: string
): void {
addReference(value?: Obj | string, isGlobal = true, id?: string): void {
if (!value) return;
if (typeof value === 'string') {
const extensionValue = this.findExtensionValue(value);
this.addReferences(extensionValue);
// The child of a reference is only a set of references when an array,
// so call the addReference direct. It could be a secondary reference perhaps
this.addReference(extensionValue);
} else if (Array.isArray(value)) {
this.addReferences(value, isGlobal);
} else {
@@ -258,10 +255,10 @@ export default class CustomizationService extends PubSubService {
}
}
/** References are:
* list of customizations, added in order
* object containing a customization id and value
* This format allows for the original whitelist format.
/**
* Customizations can be specified as an array of strings or customizations,
* or as an object whose key is the reference id, and the value is the string
* or customization.
*/
addReferences(references?: Obj | Obj[], isGlobal = true): void {
if (!references) return;