Skip to content

Commit

Permalink
after build
Browse files Browse the repository at this point in the history
  • Loading branch information
cphelefu committed Sep 13, 2024
1 parent cddb86a commit 19684ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function AddLayerTree(props: AddLayerTreeProps): JSX.Element | null {
onSelectedItemsChange(selectedItems);
}, [selectedItems]);

Check warning on line 51 in packages/geoview-core/src/core/components/layers/left-panel/add-new-layer/add-layer-tree.tsx

View workflow job for this annotation

GitHub Actions / Build demo files / build-geoview

React Hook useEffect has a missing dependency: 'onSelectedItemsChange'. Either include it or remove the dependency array

/**
/**
* Recursive function to render tree item. It renders the layer and its children.
* @param layer - the layer to render
* @param parentId - the parent id of the layer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export function AddNewLayer(): JSX.Element {
// wmsValidation();
// wfsValidation();
}

// If we have a promise of a layer validation
if (promise) {
promise
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export const buildGeoLayerToAdd = function (inputProps: BuildGeoViewLayerInput):
}

if (treeRoot.listOfLayerEntryConfig) {

for (let i = 0; i < treeRoot.listOfLayerEntryConfig.length; i++) {
const layer = treeRoot.listOfLayerEntryConfig[i] as ListOfLayerEntry;

Expand All @@ -115,7 +114,7 @@ export const buildGeoLayerToAdd = function (inputProps: BuildGeoViewLayerInput):

layerIdsToAdd.forEach((layerId) => {
const layerTokens = layerId.split('/');

layerTokens.forEach((layerToken, index) => {
if (index === 0) {
addRootLayerNode(layerToken);
Expand Down

0 comments on commit 19684ca

Please sign in to comment.