Просмотр исходного кода

fix NaN issue

Signed-off-by: shanghaikid <jiangruiyi@gmail.com>
shanghaikid 1 год назад
Родитель
Сommit
b9bc987c30
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      client/src/pages/overview/Overview.tsx

+ 1 - 1
client/src/pages/overview/Overview.tsx

@@ -197,7 +197,7 @@ const Overview = () => {
     let duration = 0;
     let duration = 0;
     let unit = '';
     let unit = '';
     if (rootCoordCreatedTime) {
     if (rootCoordCreatedTime) {
-      if (rootCoordCreatedTime.lastIndexOf('m=')! == -1) {
+      if (rootCoordCreatedTime.lastIndexOf('m=') !== -1) {
         rootCoordCreatedTime = rootCoordCreatedTime.substring(
         rootCoordCreatedTime = rootCoordCreatedTime.substring(
           0,
           0,
           rootCoordCreatedTime.lastIndexOf('m=')
           rootCoordCreatedTime.lastIndexOf('m=')