Skip to content

Commit

Permalink
Default kind to none, fix configure-beta configjson dload
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Oct 29, 2024
1 parent 5781c22 commit f0c691d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configure/src/components/Tabs/Home/Versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ export default function Versions(props) {
},
(res) => {
downloadObject(
res.config,
res,
`${row.mission}_v${row.version}_config`,
".json"
);
Expand Down
9 changes: 9 additions & 0 deletions src/essence/Basics/Layers_/Layers_.js
Original file line number Diff line number Diff line change
Expand Up @@ -3586,6 +3586,15 @@ function parseConfig(configData, urlOnLayers) {
//Save the prevName for easy tracing back
L_._layersParent[d[i].name] = prevName

// Set default kind to 'none'
if (
d[i].type === 'vector' ||
d[i].type === 'vectortile' ||
d[i].type === 'query'
) {
L_.layers.data[d[i].name].kind = d[i].kind || 'none'
}

//Check if it's not a header and thus an actual layer with data
if (d[i].type != 'header') {
//Create parsed layers ordered
Expand Down

0 comments on commit f0c691d

Please sign in to comment.