Merge branch 'master' into release

This commit is contained in:
Trisha Anand 2022-04-12 14:06:53 +05:30 committed by GitHub
commit 85ebed6d5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,7 @@ export class JSEditor {
public ee = ObjectsRegistry.EntityExplorer;
private _runButton = "//li//*[local-name() = 'svg' and @class='run-button']";
private _outputConsole = ".CodeEditorTarget";
private _jsObjName = ".t--js-action-name-edit-field span";
private _jsObjTxt = ".t--js-action-name-edit-field input";
private _newJSobj = "span:contains('New JS Object')"

View File

@ -16,6 +16,7 @@ import store from "store";
import { logoutUser } from "actions/userActions";
import { AUTH_LOGIN_URL } from "constants/routes";
import { getCurrentGitBranch } from "selectors/gitSyncSelectors";
import getQueryParamsObject from "utils/getQueryParamsObject";
const executeActionRegex = /actions\/execute/;
const timeoutErrorRegex = /timeout of (\d+)ms exceeded/;
@ -38,7 +39,8 @@ const is404orAuthPath = () => {
// this will be used to calculate the time taken for an action
// execution request
export const apiRequestInterceptor = (config: AxiosRequestConfig) => {
const branch = getCurrentGitBranch(store.getState());
const branch =
getCurrentGitBranch(store.getState()) || getQueryParamsObject().branch;
if (branch) {
config.headers.branchName = branch;
}

View File

@ -52,8 +52,8 @@ export type SavePageResponseData = {
actionUpdates: Array<{
executeOnLoad: boolean;
id: string;
collectionId?: string;
name: string;
collectionId?: string;
}>;
};