webnamics / u-dicom-viewer

A simple web browser DICOM viewer for any device.
MIT License
160 stars 66 forks source link

error on upload multiple dicom files #17

Open krishna75011 opened 3 years ago

krishna75011 commented 3 years ago

please help me to resolve it

screenshot-localhost_3000-2021 03 04-18_48_21 screenshot-localhost_3000-2021 03 04-18_48_211 screenshot-localhost_3000-2021 03 04-18_48_212 screenshot-localhost_3000-2021 03 04-18_52_223 screenshot-localhost_3000-2021 03 04-18_52_224

realPrimoh commented 1 year ago

Did you ever figure it out?

RR2pao commented 11 months ago

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...