packages/react-components/src/InputConsts/options/key.tsx
Function createOptions
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function createOptions (api: ApiPromise, sectionName: string): DropdownOptions {
const section = api.consts[sectionName];
if (!section || Object.keys(section).length === 0) {
return [];