diff --git a/web/client/actions/__tests__/layers-test.js b/web/client/actions/__tests__/layers-test.js index b10ee2c602..937d5f4d8f 100644 --- a/web/client/actions/__tests__/layers-test.js +++ b/web/client/actions/__tests__/layers-test.js @@ -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); diff --git a/web/client/actions/layers.js b/web/client/actions/layers.js index 2ba8370d22..4e1dedeea1 100644 --- a/web/client/actions/layers.js +++ b/web/client/actions/layers.js @@ -126,7 +126,7 @@ function layerError(layerId) { }; } -function addLayer(layer, foreground = false) { +function addLayer(layer, foreground = true) { return { type: ADD_LAYER, layer,