We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe35899 commit 1fab980Copy full SHA for 1fab980
src/components/ConfigMapSecret/ConfigMapSecret.components.tsx
@@ -678,10 +678,10 @@ export function ProtectedConfigMapSecretDetails({
678
}
679
680
export const convertToValidValue = (k: any): string => {
681
- if (k !== false && k !== true && k !== '' && Number(isNaN(k))) {
682
- return Number(k).toString()
683
- }
684
- return k.toString()
+ if (typeof k !== 'string' && k !== false && k !== true && k !== '') {
+ return Number(k).toString()
+ }
+ return k.toString()
685
686
687
export function validateKeyValuePair(arr: KeyValue[]): KeyValueValidated {
0 commit comments