Skip to content
Snippets Groups Projects
Unverified Commit 2ac51762 authored by Anton Kulyk's avatar Anton Kulyk Committed by GitHub
Browse files

Fix "Run selected text" removes everything but the selected text from the query (#16917)

parent 799fe86c
Branches
Tags
No related merge requests found
......@@ -229,7 +229,13 @@ export const card = handleActions(
[UPDATE_QUESTION]: (state, { payload: { card } }) => card,
[QUERY_COMPLETED]: (state, { payload: { card } }) => card,
[QUERY_COMPLETED]: {
next: (state, { payload: { card } }) => ({
...state,
display: card.display,
visualization_settings: card.visualization_settings,
}),
},
[CREATE_PUBLIC_LINK]: {
next: (state, { payload }) => ({ ...state, public_uuid: payload.uuid }),
......
......@@ -8,7 +8,7 @@ const highlightSelectedText = "{shift}{rightarrow}".repeat(
SELECTED_TEXT.length,
);
describe.skip("issue 16886", () => {
describe("issue 16886", () => {
beforeEach(() => {
restore();
cy.signInAsAdmin();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment