Allow empty type reg (#2313)
This commit is contained in:
parent
863d160da0
commit
12f39673bf
@ -148,7 +148,7 @@ function Developer ({ className, onStatusChange }: Props): React.ReactElement<Pr
|
||||
/>
|
||||
<Button.Or />
|
||||
<Button
|
||||
isDisabled={!isTypesValid || !isJsonValid || typesHasNoEntries}
|
||||
isDisabled={!isTypesValid || !isJsonValid}
|
||||
isPrimary
|
||||
onClick={_saveDeveloper}
|
||||
label={t('Save')}
|
||||
|
||||
@ -28,7 +28,7 @@ export interface TabItem {
|
||||
|
||||
interface Props extends BareProps {
|
||||
basePath: string;
|
||||
hidden?: string[];
|
||||
hidden?: (string | boolean | undefined)[];
|
||||
items: TabItem[];
|
||||
isSequence?: boolean;
|
||||
}
|
||||
@ -69,10 +69,9 @@ export default function Tabs (props: Props): React.ReactElement<Props> {
|
||||
className={classes('ui--Menu ui menu tabular', className)}
|
||||
style={style}
|
||||
>
|
||||
{
|
||||
items
|
||||
.filter(({ name }): boolean => !hidden.includes(name))
|
||||
.map(renderItem(props))
|
||||
{items
|
||||
.filter(({ name }): boolean => !hidden.includes(name))
|
||||
.map(renderItem(props))
|
||||
}
|
||||
</div>
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user