Jelajahi Sumber

remove duplicate condition in TaskLogsColumnDefs

PCCCCCCC 2 bulan lalu
induk
melakukan
8b790446ce
1 mengubah file dengan 11 tambahan dan 13 penghapusan
  1. 11 13
      web/src/components/table/task-logs/TaskLogsColumnDefs.jsx

+ 11 - 13
web/src/components/table/task-logs/TaskLogsColumnDefs.jsx

@@ -371,19 +371,17 @@ export const getTaskLogsColumns = ({
         const isSuccess = record.status === 'SUCCESS';
         const isSuccess = record.status === 'SUCCESS';
         const isUrl = typeof text === 'string' && /^https?:\/\//.test(text);
         const isUrl = typeof text === 'string' && /^https?:\/\//.test(text);
         if (isSuccess && isVideoTask && isUrl) {
         if (isSuccess && isVideoTask && isUrl) {
-          if (isSuccess && isVideoTask && isUrl) {
-            return (
-              <a
-                href='#'
-                onClick={(e) => {
-                  e.preventDefault();
-                  openVideoModal(text);
-                }}
-              >
-                {t('点击预览视频')}
-              </a>
-            );
-          }
+          return (
+            <a
+              href='#'
+              onClick={(e) => {
+                e.preventDefault();
+                openVideoModal(text);
+              }}
+            >
+              {t('点击预览视频')}
+            </a>
+          );
         }
         }
         if (!text) {
         if (!text) {
           return t('无');
           return t('无');