fix(explore): Replace url search params only if current page is Explore (#20972)

* fix(explore): Replace url search params only if current page is Explore

* Add unit test
This commit is contained in:
Kamil Gabryjelski
2022-08-05 16:59:52 +02:00
committed by GitHub
parent 499a28f599
commit 9350bbafee
3 changed files with 44 additions and 14 deletions

View File

@@ -153,7 +153,7 @@ const ExploreChartPanel = ({
const [showDatasetModal, setShowDatasetModal] = useState(false);
const metaDataRegistry = getChartMetadataRegistry();
const { useLegacyApi } = metaDataRegistry.get(vizType);
const { useLegacyApi } = metaDataRegistry.get(vizType) ?? {};
const vizTypeNeedsDataset =
useLegacyApi && datasource.type !== DatasourceType.Table;
// added boolean column to below show boolean so that the errors aren't overlapping