fix: remove unnecessary redirect (#25679)

This commit is contained in:
Igor Khrol 2023-10-19 21:03:44 +03:00 committed by GitHub
parent 07796b7528
commit da42bf2dbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ const asyncRefetchResultsTableProps = {
resultsKey: 'async results key', resultsKey: 'async results key',
}, },
}; };
fetchMock.get('glob:*/api/v1/dataset?*', { result: [] }); fetchMock.get('glob:*/api/v1/dataset/?*', { result: [] });
const middlewares = [thunk]; const middlewares = [thunk];
const mockStore = configureStore(middlewares); const mockStore = configureStore(middlewares);

View File

@ -39,7 +39,7 @@ const mockedProps = {
datasource: testQuery, datasource: testQuery,
}; };
fetchMock.get('glob:*/api/v1/dataset?*', { fetchMock.get('glob:*/api/v1/dataset/?*', {
result: mockdatasets, result: mockdatasets,
dataset_count: 3, dataset_count: 3,
}); });

View File

@ -253,7 +253,7 @@ export const SaveDatasetModal = ({
}); });
return SupersetClient.get({ return SupersetClient.get({
endpoint: `/api/v1/dataset?q=${queryParams}`, endpoint: `/api/v1/dataset/?q=${queryParams}`,
}).then(response => ({ }).then(response => ({
data: response.json.result.map( data: response.json.result.map(
(r: { table_name: string; id: number; owners: [DatasetOwner] }) => ({ (r: { table_name: string; id: number; owners: [DatasetOwner] }) => ({