fix: remove reload which is causing infinite call
This commit is contained in:
parent
7c88a282b3
commit
e199eaed58
@ -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) {
|
||||
|
||||
@ -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]
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user