Fixed an issue with the experiment object on log-custom-event.
This commit is contained in:
parent
2fae7004e2
commit
9e8fbcd791
1 changed files with 2 additions and 1 deletions
|
|
@ -9,10 +9,11 @@ import { headerKeys } from "@/constants/header-keys";
|
||||||
export default {
|
export default {
|
||||||
callHttpClient({ method, endpoint, payload, logApiCall = true}) {
|
callHttpClient({ method, endpoint, payload, logApiCall = true}) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
const store = useMainStore();
|
||||||
const cfDistroUrl = applicationConfig.CONSUMER_CF_DISTRO;
|
const cfDistroUrl = applicationConfig.CONSUMER_CF_DISTRO;
|
||||||
const payloadAndAnalyticsData = Object.assign({}, payload, { AppName: "SelfService" });
|
const payloadAndAnalyticsData = Object.assign({}, payload, { AppName: "SelfService" });
|
||||||
const headers = {
|
const headers = {
|
||||||
[headerKeys.EXPERIMENT]: JSON.stringify(useMainStore.experimentSettings),
|
[headerKeys.EXPERIMENT]: JSON.stringify(store.experimentSettings),
|
||||||
};
|
};
|
||||||
|
|
||||||
axios({
|
axios({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue