mirror of https://github.com/portainer/portainer
fix(container): make blank string as valid value EE-6852 (#11372)
parent
8880876bcd
commit
db16888379
|
@ -94,7 +94,9 @@ export function SingleSelect<TValue = string>({
|
|||
...aria
|
||||
}: SingleProps<TValue>) {
|
||||
const selectedValue =
|
||||
value || (typeof value === 'number' && value === 0)
|
||||
value ||
|
||||
(typeof value === 'number' && value === 0) ||
|
||||
(typeof value === 'string' && value === '')
|
||||
? _.first(findSelectedOptions<TValue>(options, value))
|
||||
: null;
|
||||
|
||||
|
|
Loading…
Reference in New Issue