Skip to content

Commit ed3d320

Browse files
authored
[Content] Disable Create Items button when user hasn't mapped the imported csv in the fields yet (#3906)
Disable Create Items button when user hasn't mapped the imported csv in the fields yet Resolves #3894 [Screencast_20251119_124809.webm](https://github.com/user-attachments/assets/387a2b43-5b97-444a-8f4b-6321de74503c)
1 parent d967bcc commit ed3d320

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/apps/content-editor/src/app/views/CSVImport/CSVImportBody.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ class CSVImportBody extends Component {
374374
disabled={
375375
this.state.complete ||
376376
this.state.inFlight ||
377-
!this.state.fieldMaps
377+
!this.state.fieldMaps ||
378+
!this.state.mappedItems?.length
378379
}
379380
onClick={this.handleCreateItems}
380381
startIcon={<AddIcon />}

0 commit comments

Comments
 (0)