diff --git a/CHANGELOG.md b/CHANGELOG.md index ed7faeaff..687aee308 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * The '[number of records] - records found' subtitle is displayed after clicking on the textLink error counter (UIDATIMP-1549) * Display loading spinners while running jobs and job log displays are loading. (UIDATIMP-1557) * Resolve long loading times for running jobs and job log displays. (UIDATIMP-1557) +* Invalid log when attempting to create item without SRS and Instance. (UIDATIMP-1564) ## [7.0.2](https://github.com/folio-org/ui-data-import/tree/v7.0.2) (2023-11-07) diff --git a/src/routes/JobSummary/components/RecordsTable.js b/src/routes/JobSummary/components/RecordsTable.js index 0e6ab6423..0120e7cf7 100644 --- a/src/routes/JobSummary/components/RecordsTable.js +++ b/src/routes/JobSummary/components/RecordsTable.js @@ -195,6 +195,7 @@ export const RecordsTable = ({ holdingsData, itemData, } = getRelatedInfo(jobLogRecords, sourceRecordId); + const instanceId = instanceData?.idList[0]; const isGeneralItemError = isGeneralItemsError(itemData, itemActionStatus); @@ -228,8 +229,16 @@ export const RecordsTable = ({ ); } + if (isEmpty(holdingsData)) { + return ( + + ); + } + const itemInfo = itemData ? [...itemData] : [{}]; - const instanceId = instanceData?.idList[0]; holdingsData?.forEach(holdings => { const isDiscarded = holdings.actionStatus === RECORD_ACTION_STATUS.DISCARDED;