u-dicom-viewer
u-dicom-viewer copied to clipboard
error on upload multiple dicom files
please help me to resolve it
Did you ever figure it out?
this.props.setFilesStore(this.items) this.close()
Here, in OpenMultipleFilesDlg.js (line 184), the code there os a dispatch to the redux store. For some reason, the state does not update immediately and if you call close(), you end up with an undefined value in the state. My solution was a barbaric one:
this.props.setFilesStore(this.items)
setTimeout(() => {
this.close()
}, '2000')
This is not elegant but works...