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