fix(core-app): CB-898 remove unnecessary code

This commit is contained in:
Naumov Alexey
2021-04-02 12:01:24 +03:00
parent 1cd93bee58
commit a8efae88a8
3 changed files with 3 additions and 9 deletions
@@ -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(