fix: Revert to old endpoint temporarily to enable sharing saved queries (#24434)

This commit is contained in:
Jack Fragassi 2023-06-20 10:57:08 -07:00 committed by GitHub
parent 93e1db4bd9
commit 86ce440833
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
};