MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / kindsFromAtoms

Function kindsFromAtoms

query-builder.js:371–377  ·  view source on GitHub ↗
(atoms)

Source from the content-addressed store, hash-verified

369 const sc = effectiveScalarValues(kindKey, selId);
370 if (!sc.values.length) return;
371 if (sc.values.length === 1) atoms.push({ t: "filter", kind: kindProp, value: sc.values[0] });
372 else atoms.push({ t: "filterMulti", kind: kindProp, values: sc.values.slice(), combine: sc.combine });
373 }
374 pushKind("designer", "designer-select", "designer");
375 pushKind("license", "license-select", "license");
376 pushKind("parentModel", "parent-select", "parentModel");
377
378 const tg = effectiveTagValues();
379 if (tg.values.length === 1) atoms.push({ t: "filter", kind: "tag", value: tg.values[0] });
380 else if (tg.values.length > 1) atoms.push({ t: "filterMulti", kind: "tag", values: tg.values.slice(), combine: tg.combine });

Calls

no outgoing calls

Tested by

no test coverage detected