diff --git a/frontend/src/Editor/Viewer.jsx b/frontend/src/Editor/Viewer.jsx index 3c1de41dde..b6a0bd202e 100644 --- a/frontend/src/Editor/Viewer.jsx +++ b/frontend/src/Editor/Viewer.jsx @@ -473,12 +473,6 @@ class ViewerComponent extends React.Component { }); this.setStateForApp(data); this.setStateForContainer(data, versionId); - const preview = !!queryString.parse(this.props?.location?.search)?.version; - fetchAndSetWindowTitle({ - page: pageTitles.VIEWER, - appName: data.name, - preview, - }); }) .catch(() => { this.setState({ diff --git a/frontend/src/_helpers/appUtils.js b/frontend/src/_helpers/appUtils.js index 149ca421ac..17d4b01d46 100644 --- a/frontend/src/_helpers/appUtils.js +++ b/frontend/src/_helpers/appUtils.js @@ -1082,12 +1082,7 @@ export function runQuery( } else if (query.kind === 'runpy') { queryExecutionPromise = executeRunPycode(_self, query.options.code, query, false, mode, queryState); } else { - queryExecutionPromise = dataqueryService.run( - queryId, - options, - query?.options, - currentAppEnvironmentId ?? environmentId - ); + queryExecutionPromise = dataqueryService.run(queryId, options, query?.options); } queryExecutionPromise