Skip to content

Commit

Permalink
Merge pull request #570 from weni-ai/fix/wrong_project_name
Browse files Browse the repository at this point in the history
[ENGAGE-2206] - Fix wrong project name in chats dashboard and history
  • Loading branch information
mateuseduardomedeiros authored Dec 16, 2024
2 parents 7a5b3eb + 1631ac3 commit 600d161
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,25 @@ import { useRooms } from './store/modules/chats/rooms';
import { useDashboard } from './store/modules/dashboard';
import initHotjar from '@/plugins/Hotjar';
import { getProject } from '@/utils/config';
import {
getProject,
setProject as setProjectLocalStorage,
} from '@/utils/config';
import moment from 'moment';
export default {
name: 'App',
setup() {
const queryString = window.location.href.split('?')[1];
const { projectUuid } = Object.fromEntries(
new URLSearchParams(queryString).entries(),
);
if (projectUuid) setProjectLocalStorage(projectUuid);
},
data() {
return {
ws: null,
Expand Down

0 comments on commit 600d161

Please sign in to comment.