Commit 92c6794b by Seefs Committed by GitHub

Merge pull request #2554 from zpc7/bugfix/remove-duplicate-condition

parents ce44333a 5da36c81
......@@ -371,19 +371,17 @@ 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='#'
onClick={(e) => {
e.preventDefault();
openVideoModal(text);
}}
>
{t('点击预览视频')}
</a>
);
}
return (
<a
href='#'
onClick={(e) => {
e.preventDefault();
openVideoModal(text);
}}
>
{t('点击预览视频')}
</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