このコミットが含まれているのは:
@@ -231,6 +231,15 @@ const PostImportReviewPage: FC<Props> = ({ user }) => {
|
||||
metadataUrl: row.metadataUrl })),
|
||||
changed_row: -1 })
|
||||
const validatedRows = initialisePreviewRows (validated.rows)
|
||||
const expectedSourceRows = currentSession.rows
|
||||
.filter (row => row.importStatus !== 'created')
|
||||
.map (row => row.sourceRow)
|
||||
const validatedSourceRows = new Set (validatedRows.map (_1 => _1.sourceRow))
|
||||
if (expectedSourceRows.some (_1 => !(validatedSourceRows.has (_1))))
|
||||
{
|
||||
toast ({ title: '再検証結果が不完全でした' })
|
||||
return
|
||||
}
|
||||
const latestAfterValidate = sessionRef.current ?? currentSession
|
||||
const mergedRows = mergeValidatedImportRows (latestAfterValidate.rows, validatedRows)
|
||||
const firstInvalid = mergedRows.find (row => Object.keys (row.validationErrors).length > 0)
|
||||
|
||||
新しい課題から参照
ユーザをブロックする