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:
Nicolas 2026-01-15 15:27:18 -05:00
commit f4f9c97169

View File

@ -45,12 +45,12 @@ export default defineRouter(function (/* { store, ssrContext } */) {
} }
}) })
Router.afterEach( async (destination_page) => { Router.afterEach( (destination_page) => {
const auth_store = useAuthStore(); const auth_store = useAuthStore();
if (auth_store.user?.user_module_access.includes('chatbot')) { if (auth_store.user?.user_module_access.includes('chatbot')) {
const chatbot_store = useChatbotStore(); const chatbot_store = useChatbotStore();
await chatbot_store.updatePageContext(destination_page.name as RouteNames); chatbot_store.updatePageContext(destination_page.name as RouteNames);
} }
}) })