Skip to content

Commit

Permalink
[Lens] Resetting a layer generates new suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
wylieconlon committed Mar 19, 2020
1 parent 58b7e20 commit b7b0fc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ describe('removeLayer', () => {
expect(newState.visualization.state).toEqual(['vis_clear_layer1']);
expect(newState.datasourceStates.ds1.state).toEqual(['ds1_clear_layer1']);
expect(newState.datasourceStates.ds2.state).toEqual([]);
expect(newState.stagedPreview).not.toBeDefined();
expect(trackUiEvent).toHaveBeenCalledWith('layer_cleared');
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export function removeLayer(opts: RemoveLayerOptions): EditorFrameState {
? activeVisualization.clearLayer(state.visualization.state, layerId)
: activeVisualization.removeLayer(state.visualization.state, layerId),
},
stagedPreview: undefined,
};
}

Expand Down

0 comments on commit b7b0fc8

Please sign in to comment.