mirror of https://github.com/portainer/portainer
fix(namespace): handle undefined registry options [EE-6366] (#10683)
Co-authored-by: testa113 <testa113>pull/10684/head
parent
a4b17d2548
commit
2f91315ac7
|
@ -9,14 +9,14 @@ import { Link } from '@@/Link';
|
||||||
interface Props {
|
interface Props {
|
||||||
value: MultiValue<Registry>;
|
value: MultiValue<Registry>;
|
||||||
onChange(value: MultiValue<Registry>): void;
|
onChange(value: MultiValue<Registry>): void;
|
||||||
options: Registry[];
|
options?: Registry[];
|
||||||
inputId?: string;
|
inputId?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function RegistriesSelector({
|
export function RegistriesSelector({
|
||||||
value,
|
value,
|
||||||
onChange,
|
onChange,
|
||||||
options,
|
options = [],
|
||||||
inputId,
|
inputId,
|
||||||
}: Props) {
|
}: Props) {
|
||||||
const { isAdmin } = useCurrentUser();
|
const { isAdmin } = useCurrentUser();
|
||||||
|
|
Loading…
Reference in New Issue