fix store issue

This commit is contained in:
Sujatha Anishetty 2024-07-30 15:40:44 -04:00
parent a5bd2fcfaa
commit 712e0eb9b9

View file

@ -5,7 +5,6 @@ import loggingEndpointMethods from "@/constants/logging-endpoint-methods";
import headerKeys from "@/constants/header-keys";
const store = useMainStore();
export class Logger {
logInformation(message, details) {
this.writeLogEntry(
@ -39,6 +38,8 @@ export class Logger {
}
writeLogEntry(endpoint, logEntry) {
const store = useMainStore();
return new Promise((resolve, reject) => {
// If running locally or in the Dev environment show the log entries in the console.
if (