Skip to content

Commit

Permalink
fix: code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
nahmed22 committed Jan 30, 2025
1 parent 47fa44e commit ed6f4a4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ export class ToggleSemanticDateRangeFilterBar
const isAboveOrEqualMinimalVersion = !isLowerThanMinimalUi5Version(version, { major: 1, minor: 126 });
let entitySet;
if (!isAboveOrEqualMinimalVersion && isA<SmartFilterBar>(CONTROL_TYPE_LR, this.control)) {
entitySet = this.control?.getId()?.match(/::([^:]+)--/)?.[1];
const regex = /::([^:]+)--/;
entitySet = regex.exec(this.control?.getId() ?? '')?.[1];
} else {
entitySet =
isA<SmartFilterBar>(CONTROL_TYPE_LR, this.control) ||
Expand Down

0 comments on commit ed6f4a4

Please sign in to comment.