Skip to content

Commit fefef65

Browse files
committed
reverted code
1 parent 1fab980 commit fefef65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ConfigMapSecret/ConfigMapSecret.components.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,8 +677,8 @@ export function ProtectedConfigMapSecretDetails({
677677
return selectedTab === 2 ? renderDiffView() : renderForm()
678678
}
679679

680-
export const convertToValidValue = (k: any): string => {
681-
if (typeof k !== 'string' && k !== false && k !== true && k !== '') {
680+
export const convertToValidValue = (k: any): string => {
681+
if (k !== false && k !== true && k !== '' && !isNaN(Number(k))) {
682682
return Number(k).toString()
683683
}
684684
return k.toString()

0 commit comments

Comments
 (0)