mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
fix(core-app): CB-898 remove unnecessary code
This commit is contained in:
@@ -15,7 +15,7 @@ const defaultSettings = {
|
||||
'app.logViewer.logBatchSize': 2000,
|
||||
'app.logViewer.maxFailedRequests': 3,
|
||||
// temporary limit for all nodes children in app
|
||||
'app.childrenLimit': 500,
|
||||
'app.navigationTree.childrenLimit': 500,
|
||||
};
|
||||
|
||||
export type CoreSettings = typeof defaultSettings;
|
||||
|
||||
@@ -72,13 +72,7 @@ export class NavigationTreeService {
|
||||
}
|
||||
|
||||
getChildren(id: string): string[] | undefined {
|
||||
const children = this.navTreeResource.get(id);
|
||||
|
||||
if (children) {
|
||||
return children.slice(0, this.navTreeResource.childrenLimit);
|
||||
}
|
||||
|
||||
return children;
|
||||
return this.navTreeResource.get(id);
|
||||
}
|
||||
|
||||
async navToNode(id: string, parentId: string): Promise<void> {
|
||||
|
||||
@@ -41,7 +41,7 @@ export class NavTreeResource extends CachedMapResource<string, string[]> {
|
||||
protected metadata: MetadataMap<string, INodeMetadata>;
|
||||
|
||||
get childrenLimit(): number {
|
||||
return this.coreSettingsService.settings.getValue('app.childrenLimit');
|
||||
return this.coreSettingsService.settings.getValue('app.navigationTree.childrenLimit');
|
||||
}
|
||||
|
||||
constructor(
|
||||
|
||||
Reference in New Issue
Block a user