From 7b7c385c6410271bb238685d81da4f8186db6ae0 Mon Sep 17 00:00:00 2001 From: Kavin Venkatachalam Date: Mon, 6 May 2024 12:53:57 +0530 Subject: [PATCH] fixed lint issues --- frontend/src/Editor/Viewer.jsx | 6 ------ frontend/src/_helpers/appUtils.js | 7 +------ 2 files changed, 1 insertion(+), 12 deletions(-) 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