mirror of https://github.com/apache/superset.git
fix: remove unnecessary redirect (#25679)
This commit is contained in:
parent
07796b7528
commit
da42bf2dbb
|
@ -95,7 +95,7 @@ const asyncRefetchResultsTableProps = {
|
|||
resultsKey: 'async results key',
|
||||
},
|
||||
};
|
||||
fetchMock.get('glob:*/api/v1/dataset?*', { result: [] });
|
||||
fetchMock.get('glob:*/api/v1/dataset/?*', { result: [] });
|
||||
|
||||
const middlewares = [thunk];
|
||||
const mockStore = configureStore(middlewares);
|
||||
|
|
|
@ -39,7 +39,7 @@ const mockedProps = {
|
|||
datasource: testQuery,
|
||||
};
|
||||
|
||||
fetchMock.get('glob:*/api/v1/dataset?*', {
|
||||
fetchMock.get('glob:*/api/v1/dataset/?*', {
|
||||
result: mockdatasets,
|
||||
dataset_count: 3,
|
||||
});
|
||||
|
|
|
@ -253,7 +253,7 @@ export const SaveDatasetModal = ({
|
|||
});
|
||||
|
||||
return SupersetClient.get({
|
||||
endpoint: `/api/v1/dataset?q=${queryParams}`,
|
||||
endpoint: `/api/v1/dataset/?q=${queryParams}`,
|
||||
}).then(response => ({
|
||||
data: response.json.result.map(
|
||||
(r: { table_name: string; id: number; owners: [DatasetOwner] }) => ({
|
||||
|
|
Loading…
Reference in New Issue