Merge pull request 'fix(chatbot): updating context in chatbot store no longer requires async, removed.' (#52) from dev/nicolas/staging-prep into main
Reviewed-on: Targo/targo_frontend#52
This commit is contained in:
commit
f4f9c97169
|
|
@ -45,12 +45,12 @@ export default defineRouter(function (/* { store, ssrContext } */) {
|
|||
}
|
||||
})
|
||||
|
||||
Router.afterEach( async (destination_page) => {
|
||||
Router.afterEach( (destination_page) => {
|
||||
const auth_store = useAuthStore();
|
||||
|
||||
if (auth_store.user?.user_module_access.includes('chatbot')) {
|
||||
const chatbot_store = useChatbotStore();
|
||||
await chatbot_store.updatePageContext(destination_page.name as RouteNames);
|
||||
chatbot_store.updatePageContext(destination_page.name as RouteNames);
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user