このコミットが含まれているのは:
@@ -814,7 +814,8 @@ const PostImportReviewPage: FC<Props> = ({ user }) => {
|
||||
importErrors: undefined })
|
||||
})
|
||||
const persisted = await persistSession (buildSession (nextRows))
|
||||
if (persisted != null && processableImportRows (persisted.rows).length === 0)
|
||||
if (persisted != null
|
||||
&& persisted.rows.every (row => isCompletedReviewRow (row)))
|
||||
finishImport ()
|
||||
}
|
||||
catch
|
||||
@@ -845,10 +846,7 @@ const PostImportReviewPage: FC<Props> = ({ user }) => {
|
||||
{
|
||||
const processingRows = processableImportRows (currentSession.rows)
|
||||
if (processingRows.length === 0)
|
||||
{
|
||||
finishImport ()
|
||||
return
|
||||
}
|
||||
return
|
||||
|
||||
const result = await apiPost<{ results: BulkApiRow[] }>(
|
||||
'/posts/bulk',
|
||||
@@ -879,7 +877,8 @@ const PostImportReviewPage: FC<Props> = ({ user }) => {
|
||||
importErrors: undefined })
|
||||
})
|
||||
const persisted = await persistSession (buildSession (nextRows))
|
||||
if (persisted != null && processableImportRows (persisted.rows).length === 0)
|
||||
if (persisted != null
|
||||
&& persisted.rows.every (row => isCompletedReviewRow (row)))
|
||||
finishImport ()
|
||||
}
|
||||
catch
|
||||
@@ -1013,7 +1012,7 @@ const PostImportFooter = (
|
||||
<Button
|
||||
type="button"
|
||||
onClick={onSubmit}
|
||||
disabled={loading || creatableCount === 0}>
|
||||
disabled={loading}>
|
||||
{creatableCount > 1 ? '一括追加' : '追加'}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
新しい課題から参照
ユーザをブロックする