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 1fab980 commit fefef65Copy full SHA for fefef65
src/components/ConfigMapSecret/ConfigMapSecret.components.tsx
@@ -677,8 +677,8 @@ export function ProtectedConfigMapSecretDetails({
677
return selectedTab === 2 ? renderDiffView() : renderForm()
678
}
679
680
-export const convertToValidValue = (k: any): string => {
681
- if (typeof k !== 'string' && k !== false && k !== true && k !== '') {
+export const convertToValidValue = (k: any): string => {
+ if (k !== false && k !== true && k !== '' && !isNaN(Number(k))) {
682
return Number(k).toString()
683
684
return k.toString()
0 commit comments