c2-mongoose 2.1.221 → 2.1.222
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.
|
@@ -27,7 +27,7 @@ var BuildPopulateSingleFlowItem = /** @class */ (function () {
|
|
|
27
27
|
var populateLocal = this_1.buildPath(first, nested);
|
|
28
28
|
if (Array.isArray(selectsStr)) {
|
|
29
29
|
var selects = selectsStr.filter(function (sel) { return sel.startsWith("".concat(first, ".")); });
|
|
30
|
-
var select = selects.map(function (sel) { return sel.split(".")[1]; }).join(" ");
|
|
30
|
+
var select = Array.from(new Set(selects)).map(function (sel) { return sel.split(".")[1]; }).join(" ").trim();
|
|
31
31
|
if ((0, Utils_1.isNotEmpty)(select)) {
|
|
32
32
|
populateLocal.select = select;
|
|
33
33
|
}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ class BuildPopulateSingleFlowItem {
|
|
|
18
18
|
|
|
19
19
|
if (Array.isArray(selectsStr)) {
|
|
20
20
|
let selects = (selectsStr as []).filter((sel: string) => sel.startsWith(`${first}.`))
|
|
21
|
-
let select = selects.map((sel: string) => sel.split(".")[1]).join(" ")
|
|
21
|
+
let select = Array.from(new Set(selects)).map((sel: string) => sel.split(".")[1]).join(" ").trim()
|
|
22
22
|
if (isNotEmpty(select)) {
|
|
23
23
|
populateLocal.select = select
|
|
24
24
|
}
|