mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-07 16:07:24 +00:00
UBERF-9036 Fix infinite loading in drive (#7780)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
992bc99cea
commit
9a29cde7a6
@ -31,10 +31,8 @@
|
|||||||
let configurations: Record<Ref<Class<Doc>>, Viewlet['config']> = {}
|
let configurations: Record<Ref<Class<Doc>>, Viewlet['config']> = {}
|
||||||
|
|
||||||
function fetchConfigurations (viewlet: Viewlet): void {
|
function fetchConfigurations (viewlet: Viewlet): void {
|
||||||
configurationsLoading = true
|
|
||||||
configurations = {}
|
configurations = {}
|
||||||
|
configurationsLoading = objectConfigurations.query(
|
||||||
objectConfigurations.query(
|
|
||||||
view.class.Viewlet,
|
view.class.Viewlet,
|
||||||
{
|
{
|
||||||
attachTo: { $in: hierarchy.getDescendants(_class) },
|
attachTo: { $in: hierarchy.getDescendants(_class) },
|
||||||
@ -49,8 +47,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function fetchPreferences (viewlet: Viewlet): void {
|
function fetchPreferences (viewlet: Viewlet): void {
|
||||||
preferencesLoading = true
|
preferencesLoading = preferenceQuery.query(
|
||||||
preferenceQuery.query(
|
|
||||||
view.class.ViewletPreference,
|
view.class.ViewletPreference,
|
||||||
{
|
{
|
||||||
space: core.space.Workspace,
|
space: core.space.Workspace,
|
||||||
|
@ -751,7 +751,7 @@ export function categorizeFields (
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function makeViewletKey (loc?: Location): string {
|
export function makeViewletKey (loc?: Location): string {
|
||||||
loc = loc != null ? { path: loc.path } : getCurrentResolvedLocation()
|
loc = loc != null ? { path: loc.path, fragment: loc.fragment } : getCurrentResolvedLocation()
|
||||||
loc.query = undefined
|
loc.query = undefined
|
||||||
|
|
||||||
if (loc.fragment != null && loc.fragment !== '') {
|
if (loc.fragment != null && loc.fragment !== '') {
|
||||||
|
Loading…
Reference in New Issue
Block a user