Browse Source

Transform string of numbers to number

jnfrati 4 years ago
parent
commit
0e33caf4d6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      dashboard/src/main/home/cluster-dashboard/chart/ChartList.tsx

+ 2 - 1
dashboard/src/main/home/cluster-dashboard/chart/ChartList.tsx

@@ -242,7 +242,8 @@ const ChartList: React.FunctionComponent<Props> = ({
 
 
           if (
           if (
             !existingValue ||
             !existingValue ||
-            newValue.resource_version > existingValue.resource_version
+            Number(newValue.resource_version) >
+              Number(existingValue.resource_version)
           ) {
           ) {
             return {
             return {
               ...currentStatus,
               ...currentStatus,