Skip to content

Commit

Permalink
fix #1220 changed the settings when adding layer to TOC layer now it …
Browse files Browse the repository at this point in the history
…goes top (#1233)
  • Loading branch information
saidaipparla authored and mbarto committed Nov 2, 2016
1 parent 2ab0ab2 commit f60755c
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 f60755c

Please sign in to comment.