mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-30 18:41:46 +00:00
remove duplicate condition in TaskLogsColumnDefs
This commit is contained in:
@@ -370,7 +370,6 @@ export const getTaskLogsColumns = ({
|
|||||||
record.action === TASK_ACTION_REMIX_GENERATE;
|
record.action === TASK_ACTION_REMIX_GENERATE;
|
||||||
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 (
|
return (
|
||||||
<a
|
<a
|
||||||
@@ -384,7 +383,6 @@ export const getTaskLogsColumns = ({
|
|||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (!text) {
|
if (!text) {
|
||||||
return t('无');
|
return t('无');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user