@platforma-open/milaboratories.sort-seq-analysis.block 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -12699,8 +12699,7 @@ function settingsIssues(data) {
12699
12699
  if (new Set(roles).size !== roles.length) issues.push("The condition, gate and sort-fraction columns must be three different columns");
12700
12700
  if (data.gateColumnRef !== void 0) {
12701
12701
  if (data.gateValues.length === 0) issues.push("The gate column has no values to rank");
12702
- const missing = data.gateValues.filter((value) => !data.gateOrder.includes(value));
12703
- if (missing.length > 0) issues.push(`Assign an order position to every gate: ${missing.join(", ")} ${missing.length === 1 ? "is" : "are"} missing`);
12702
+ else if (data.gateOrder.length === 0) issues.push("Keep at least one gate in the order — every gate has been removed");
12704
12703
  const unknown = data.gateOrder.filter((value) => !data.gateValues.includes(value));
12705
12704
  if (unknown.length > 0) issues.push(`Ordered value(s) the gate column does not carry: ${unknown.join(", ")}`);
12706
12705
  }