mirror of https://github.com/abpframework/abp.git
Browse Source
Multiple fixes and refactors across components and directives: - chart.component.ts: Make initChart accept data and options, pass them when initializing/reinitializing, and avoid unnecessary early returns in effects. - extensible-form-prop.component.ts: Guard against missing data, reuse a local data variable, pass record to injector providers, and tighten autofocus condition checks. - extensible-table.component.ts: Extract record preparation into prepareRecord to simplify data mapping logic. - tree.component.ts: Cache checked keys once when toggling node selection to avoid repeated calls. - autofocus.directive.ts: Remove deprecated numberAttribute and use a transform that safely converts input to Number. - permission-management.component.ts: Cache providerName/providerKey, validate them before fetching, and use cached values in filters and checks. - visible.directive.ts: Avoid redundant condition updates by tracking the last input value. These changes improve safety (null checks), readability (helper extraction), and performance (reduced repeated computations).pull/24777/head
7 changed files with 77 additions and 60 deletions
Loading…
Reference in new issue