(op)
| 495 | } |
| 496 | if (elementId === "license-select") { |
| 497 | const sc = effectiveScalarValues("license", "license-select"); |
| 498 | if (!sc.values.length) return []; |
| 499 | if (sc.values.length === 1) return [{ t: "filter", kind: "license", value: sc.values[0] }]; |
| 500 | return [{ t: "filterMulti", kind: "license", values: sc.values.slice(), combine: sc.combine }]; |
| 501 | } |
| 502 | if (elementId === "parent-select") { |
| 503 | const sc = effectiveScalarValues("parentModel", "parent-select"); |
| 504 | if (!sc.values.length) return []; |
| 505 | if (sc.values.length === 1) return [{ t: "filter", kind: "parentModel", value: sc.values[0] }]; |
| 506 | return [{ t: "filterMulti", kind: "parentModel", values: sc.values.slice(), combine: sc.combine }]; |
| 507 | } |
| 508 | if (elementId === "tag-filter") { |
| 509 | const sc = effectiveTagValues(); |
| 510 | if (!sc.values.length) return []; |
| 511 | if (sc.values.length === 1) return [{ t: "filter", kind: "tag", value: sc.values[0] }]; |
| 512 | return [{ t: "filterMulti", kind: "tag", values: sc.values.slice(), combine: sc.combine }]; |
| 513 | } |
| 514 | if (elementId === "filament-filter") { |
| 515 | const sc = effectiveScalarValues("filaments", "filament-filter"); |
| 516 | if (!sc.values.length) return []; |
| 517 | if (sc.values.length === 1) return [{ t: "filter", kind: "filament", value: sc.values[0] }]; |
| 518 | return [{ t: "filterMulti", kind: "filament", values: sc.values.slice(), combine: sc.combine }]; |
nothing calls this directly
no test coverage detected