このコミットが含まれているのは:
@@ -10,20 +10,13 @@ const hasWarnings = (row: PostImportRow): boolean =>
|
||||
|
||||
export const displayPostImportStatus = (
|
||||
row: PostImportRow,
|
||||
): PostImportDisplayStatus | null => {
|
||||
const skipped =
|
||||
row.skipReason === 'existing'
|
||||
|| row.importStatus === 'skipped'
|
||||
const hidden =
|
||||
Object.keys (row.validationErrors ?? { }).length > 0
|
||||
): PostImportDisplayStatus | null =>
|
||||
(row.skipReason === 'existing' || row.importStatus === 'skipped')
|
||||
? 'skipped'
|
||||
: ((Object.keys (row.validationErrors ?? { }).length > 0
|
||||
|| row.importStatus === 'failed'
|
||||
|| row.importStatus === 'created'
|
||||
|
||||
if (skipped)
|
||||
return 'skipped'
|
||||
if (hidden)
|
||||
return null
|
||||
return hasWarnings (row) || row.status === 'warning'
|
||||
? 'warning'
|
||||
: 'ready'
|
||||
}
|
||||
|| row.importStatus === 'created')
|
||||
? null
|
||||
: ((hasWarnings (row) || row.status === 'warning')
|
||||
? 'warning'
|
||||
: 'ready'))
|
||||
|
||||
新しい課題から参照
ユーザをブロックする