Skip to content

Commit

Permalink
fix: Revert to old endpoint temporarily to enable sharing saved queri…
Browse files Browse the repository at this point in the history
…es (apache#24434)
  • Loading branch information
jfrag1 authored Jun 20, 2023
1 parent 93e1db4 commit 86ce440
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions superset-frontend/src/SqlLab/actions/sqlLab.js
Original file line number Diff line number Diff line change
Expand Up @@ -1372,12 +1372,11 @@ export function popStoredQuery(urlId) {
export function popSavedQuery(saveQueryId) {
return function (dispatch) {
return SupersetClient.get({
endpoint: `/api/v1/saved_query/${saveQueryId}`,
endpoint: `/savedqueryviewapi/api/get/${saveQueryId}`,
})
.then(({ json }) => {
const queryEditorProps = {
...convertQueryToClient(json.result),
dbId: json.result?.database?.id,
loaded: true,
autorun: false,
};
Expand Down

0 comments on commit 86ce440

Please sign in to comment.