Skip to content

Commit

Permalink
fix geosolutions-it#1220 changed the settings when adding layer to TO…
Browse files Browse the repository at this point in the history
…C layer now it goes top
  • Loading branch information
saidaipparla committed Oct 31, 2016
1 parent 2ab0ab2 commit b3d25e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/client/actions/__tests__/layers-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ describe('Test correctness of the layers actions', () => {
expect(retval1).toExist();
expect(retval1.type).toBe(ADD_LAYER);
expect(retval1.layer).toBe(testVal);
expect(retval1.foreground).toBe(false);
expect(retval1.foreground).toBe(true);

const retval2 = addLayer(testVal, true);

Expand Down
2 changes: 1 addition & 1 deletion web/client/actions/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function layerError(layerId) {
};
}

function addLayer(layer, foreground = false) {
function addLayer(layer, foreground = true) {
return {
type: ADD_LAYER,
layer,
Expand Down

0 comments on commit b3d25e7

Please sign in to comment.