dust-tt / dust

Amplify your team's potential with customizable and secure AI assistants.
https://dust.tt
MIT License
897 stars 99 forks source link

[front] fix: Reset input value once file is added #5958

Closed tdraier closed 2 days ago

tdraier commented 2 days ago

fixes https://github.com/dust-tt/dust/issues/5937

Description

just reset input value so that reuploading the same file again trigger the handleChange again

Risk

Deploy Plan

deploy front

tdraier commented 2 days ago

This changes the current behaviour: we can now upload the same file multiple times. I guess we want to keep the old behaviour and only be able to upload the same file once?

yes, good catch, I thought I tested that but apparently not ..