Forráskód Böngészése

Transform string of numbers to number

jnfrati 4 éve
szülő
commit
0e33caf4d6

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

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