Skip to content

Commit

Permalink
fix: remove unnecessary redirect (#25679)
Browse files Browse the repository at this point in the history
(cherry picked from commit da42bf2)
  • Loading branch information
Khrol authored and michael-s-molina committed Oct 31, 2023
1 parent 5293f55 commit 315e758
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 @@ -257,7 +257,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 315e758

Please sign in to comment.