I fixed the file retrieval component by making the following small adjustment:

  • Converting the blob to a File and setting the name
  • Instantiating a FileData from the fetched File

I also updated the version of the client to the latest version, this version shifted the logic of normalise_file to the backend so you don't need to worry about it anymore in your component.

molecule_3d_fetch.gif

Large diff is because I rebuilt the front-end since it was already in version control.

simonduerr changed pull request status to open
simonduerr changed pull request status to merged

Thanks for your help Freddy! This indeed fixed the main problem. I was able to iron out the other remaining small bugs (e.g when clearing the input the same structure continued to be shown if another was loaded).

Looking forward to this being a bit more documented but I guess this is one of the more complicated components :)

Sign up or log in to comment