From 92fa87321501cd0f2555af974d0412874f29dc9d Mon Sep 17 00:00:00 2001 From: Artem Dzhereleiko Date: Mon, 29 May 2023 17:38:23 +0300 Subject: [PATCH] UI: Fixed sort order rule chain --- .../components/rule-chain/rule-chain-select.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui-ngx/src/app/shared/components/rule-chain/rule-chain-select.component.ts b/ui-ngx/src/app/shared/components/rule-chain/rule-chain-select.component.ts index 207ece1710..927ca8ad13 100644 --- a/ui-ngx/src/app/shared/components/rule-chain/rule-chain-select.component.ts +++ b/ui-ngx/src/app/shared/components/rule-chain/rule-chain-select.component.ts @@ -32,6 +32,7 @@ import { RuleChain, RuleChainType } from '@shared/models/rule-chain.models'; import { RuleChainService } from '@core/http/rule-chain.service'; import { isDefinedAndNotNull } from '@core/utils'; import { coerceBoolean } from '@shared/decorators/coercion'; +import { Direction } from '@shared/models/page/sort-order'; // @dynamic @Component({ @@ -84,7 +85,10 @@ export class RuleChainSelectComponent implements ControlValueAccessor, OnInit { ngOnInit() { - const pageLink = new PageLink(100); + const pageLink = new PageLink(100, 0, null, { + property: 'name', + direction: Direction.ASC + }); this.ruleChains$ = this.getRuleChains(pageLink).pipe( map((pageData) => pageData.data),