Refactored the multi record category new flow to create records on click of 'Add a Record' and not use tempRecordId.