mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
core&ui: support contest record projection
This commit is contained in:
4 files changed
+110
-51
No files matched your search
@@ -9,7 +9,7 @@ import {
|
||||
emulateAnchorClick, i18n, mongoId, substitute,
|
||||
} from 'vj/utils';
|
||||
|
||||
const shouldShowDetail = (data) => recordEnum.STATUS_SCRATCHPAD_SHOW_DETAIL_FLAGS[data.status];
|
||||
const shouldShowDetail = (data) => recordEnum.STATUS_SCRATCHPAD_SHOW_DETAIL_FLAGS[data.status] && data.testCases?.length;
|
||||
|
||||
const getRecordDetail = (data) => {
|
||||
if (!shouldShowDetail(data)) {
|
||||
|
||||
Reference in new issue
Block a user