From e281462d7218c2b0f92ddf418f68492f5740a03d Mon Sep 17 00:00:00 2001 From: Geido <60598000+geido@users.noreply.github.com> Date: Tue, 2 Nov 2021 19:27:56 +0200 Subject: [PATCH] fix(Explore): Remove changes to the properties on cancel (#17184) * Remove on close * Fix lint * Add tests --- .../components/ExploreChartHeader/ExploreChartHeader.test.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/superset-frontend/src/explore/components/ExploreChartHeader/ExploreChartHeader.test.tsx b/superset-frontend/src/explore/components/ExploreChartHeader/ExploreChartHeader.test.tsx index 8f298dce7676e..86ebb49ffc100 100644 --- a/superset-frontend/src/explore/components/ExploreChartHeader/ExploreChartHeader.test.tsx +++ b/superset-frontend/src/explore/components/ExploreChartHeader/ExploreChartHeader.test.tsx @@ -20,8 +20,12 @@ import React from 'react'; import { render, screen } from 'spec/helpers/testing-library'; import userEvent from '@testing-library/user-event'; + +import fetchMock from 'fetch-mock'; import ExploreHeader from '.'; +fetchMock.get('http://localhost/api/v1/chart/318', {}); + const createProps = () => ({ chart: { latestQueryFormData: {