UBERF-9036 Fix infinite loading in drive (#7780)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2025-01-24 15:14:24 +07:00 committed by GitHub
parent 992bc99cea
commit 9a29cde7a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 6 deletions

View File

@ -31,10 +31,8 @@
let configurations: Record<Ref<Class<Doc>>, Viewlet['config']> = {}
function fetchConfigurations (viewlet: Viewlet): void {
configurationsLoading = true
configurations = {}
objectConfigurations.query(
configurationsLoading = objectConfigurations.query(
view.class.Viewlet,
{
attachTo: { $in: hierarchy.getDescendants(_class) },
@ -49,8 +47,7 @@
}
function fetchPreferences (viewlet: Viewlet): void {
preferencesLoading = true
preferenceQuery.query(
preferencesLoading = preferenceQuery.query(
view.class.ViewletPreference,
{
space: core.space.Workspace,

View File

@ -751,7 +751,7 @@ export function categorizeFields (
}
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
if (loc.fragment != null && loc.fragment !== '') {