Skip to content

Commit ad45de7

Browse files
committedOct 23, 2021
Support case when there are no Regulatory Domain user defines at all. All 2.4 Ghz hardware
1 parent 15f0059 commit ad45de7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎src/ui/views/ConfiguratorView/UserDefinesValidator.ts

+7
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ export default class UserDefinesValidator {
1414
UserDefineKey.REGULATORY_DOMAIN_ISM_2400,
1515
];
1616

17+
// Support case when there are no Regulatory Domain user defines at all. All 2.4 Ghz hardware
18+
const regulatoryDomainsValidationRequired =
19+
data.filter(({ key }) => regulatoryDomainKeys.includes(key)).length > 0;
20+
if (!regulatoryDomainsValidationRequired) {
21+
return results;
22+
}
23+
1724
const regulatoryDefines = data.filter(
1825
({ key, enabled }) => regulatoryDomainKeys.includes(key) && enabled
1926
);

1 commit comments

Comments
 (1)

davetheghost commented on Sep 15, 2024

@davetheghost

Perhaps the removal of this could be related to #673 #674 #671 etc?

Please sign in to comment.