fix(chatbot): updating context in chatbot store no longer requires async, removed.

This commit is contained in:
Nic D. 2026-01-15 15:26:43 -05:00
parent 7cf23a6a55
commit d51fe6a7ae

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);
} }
}) })