@esri/solution-common 6.6.1-next.21 → 6.6.1-next.23
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.
|
@@ -828,7 +828,12 @@ function addFeatureServiceDefinition(serviceUrl, listToAdd, templateDictionary,
|
|
|
828
828
|
removeLayerOptimization(item);
|
|
829
829
|
// this can still chunk layers
|
|
830
830
|
options = _updateAddOptions(itemTemplate, options, layerChunks, isSelfReferential, authentication);
|
|
831
|
-
|
|
831
|
+
// Route based on the discriminator set by getLayersAndTables (which derives from
|
|
832
|
+
// properties.layers vs properties.tables) rather than the layer object's own `type`
|
|
833
|
+
// field. The latter may be missing when users supply custom layer JSON via
|
|
834
|
+
// params (e.g. {{params.buildSolution.items.<id>.service.layers}}), which would
|
|
835
|
+
// otherwise cause every layer to be pushed into the `tables` array.
|
|
836
|
+
if (toAdd.type === "layer" || item.type === "Feature Layer") {
|
|
832
837
|
options.layers.push(item);
|
|
833
838
|
}
|
|
834
839
|
else {
|
|
@@ -802,7 +802,12 @@ export function addFeatureServiceDefinition(serviceUrl, listToAdd, templateDicti
|
|
|
802
802
|
removeLayerOptimization(item);
|
|
803
803
|
// this can still chunk layers
|
|
804
804
|
options = _updateAddOptions(itemTemplate, options, layerChunks, isSelfReferential, authentication);
|
|
805
|
-
|
|
805
|
+
// Route based on the discriminator set by getLayersAndTables (which derives from
|
|
806
|
+
// properties.layers vs properties.tables) rather than the layer object's own `type`
|
|
807
|
+
// field. The latter may be missing when users supply custom layer JSON via
|
|
808
|
+
// params (e.g. {{params.buildSolution.items.<id>.service.layers}}), which would
|
|
809
|
+
// otherwise cause every layer to be pushed into the `tables` array.
|
|
810
|
+
if (toAdd.type === "layer" || item.type === "Feature Layer") {
|
|
806
811
|
options.layers.push(item);
|
|
807
812
|
}
|
|
808
813
|
else {
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
Built 04/
|
|
1
|
+
Built 04/30/2026 20:42:27.72
|
|
2
2
|
develop
|
|
3
|
-
commit
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
Date: Tue Apr 28 16:00:26 2026 -0600
|
|
3
|
+
commit bd17d372ca64fb61caa29af2cc6c3c161cfd569e
|
|
4
|
+
Author: Ryan Cosby <ryan9313@esri.com>
|
|
5
|
+
Date: Wed Apr 29 20:49:06 2026 -0700
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
tests
|
|
7
|
+
v6.6.1-next.22
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/solution-common",
|
|
3
|
-
"version": "6.6.1-next.
|
|
3
|
+
"version": "6.6.1-next.23",
|
|
4
4
|
"description": "Provides general helper functions for @esri/solution.js.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"esri",
|
|
97
97
|
"ES6"
|
|
98
98
|
],
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "bd17d372ca64fb61caa29af2cc6c3c161cfd569e"
|
|
100
100
|
}
|