Skip to content

Commit

Permalink
fix: remove unnecessary redirect (apache#25679)
Browse files Browse the repository at this point in the history
  • Loading branch information
Khrol authored and sfirke committed Mar 22, 2024
1 parent bccf4e8 commit d2c20a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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] }) => ({
Expand Down

0 comments on commit d2c20a2

Please sign in to comment.