fix: remove reload which is causing infinite call

This commit is contained in:
Shariq Ansari 2024-01-29 11:34:26 +05:30
parent 7c88a282b3
commit e199eaed58
2 changed files with 0 additions and 4 deletions

View File

@ -140,7 +140,6 @@ router.beforeEach(async (to, from, next) => {
}
if (to.path === '/') {
debugger
const defaultView = getDefaultView()
if (defaultView?.route_name) {
if (defaultView.is_view) {

View File

@ -45,9 +45,6 @@ export const viewsStore = defineStore('crm-views', (doctype) => {
function getView(view) {
if (!view) return null
if (!viewsByName[view]) {
views.reload()
}
return viewsByName[view]
}