Compare commits
2 Commits
be86e2a618
...
35bcc1615c
| Author | SHA1 | Date | |
|---|---|---|---|
| 35bcc1615c | |||
| e8ddcdb88d |
@@ -107,8 +107,6 @@ const ListBatchEditDialog = ({
|
||||
if (!resolvedOpen) return
|
||||
if (initialRows.length > 0) {
|
||||
setRows(initialRows.map((row) => ({ ...row })))
|
||||
} else if (defaultHeaderId > 0) {
|
||||
setRows([createRow(defaultHeaderId, isFileHeader(defaultHeaderId) ? LIST_BATCH_EDIT_FILE_DELETE_VALUE : '')])
|
||||
} else {
|
||||
setRows([])
|
||||
}
|
||||
@@ -116,7 +114,7 @@ const ListBatchEditDialog = ({
|
||||
setSurveyResultSelections({ ...initialSurveyResultCodes })
|
||||
setTarget('filtered')
|
||||
setInvalidRowId(null)
|
||||
}, [resolvedOpen, initialRows, initialResultCodes, initialSurveyResultCodes, defaultHeaderId])
|
||||
}, [resolvedOpen, initialRows, initialResultCodes, initialSurveyResultCodes])
|
||||
|
||||
const handleOpenChange = (nextOpen: boolean) => {
|
||||
onOpenChange?.(nextOpen)
|
||||
|
||||
Reference in New Issue
Block a user