Commit 5da36c81 by PCCCCCCC Committed by GitHub

remove duplicate condition in TaskLogsColumnDefs

parent 300459c8
......@@ -371,7 +371,6 @@ export const getTaskLogsColumns = ({
const isSuccess = record.status === 'SUCCESS';
const isUrl = typeof text === 'string' && /^https?:\/\//.test(text);
if (isSuccess && isVideoTask && isUrl) {
if (isSuccess && isVideoTask && isUrl) {
return (
<a
href='#'
......@@ -384,7 +383,6 @@ export const getTaskLogsColumns = ({
</a>
);
}
}
if (!text) {
return t('无');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment