Skip to content

Commit a0778ec

Browse files
make EditSound data reset more resilient
1 parent 62f48e9 commit a0778ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/meteor/client/views/admin/customSounds/EditSound.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ function EditSound({ close, onChange, data, ...props }: EditSoundProps): ReactEl
3434

3535
useEffect(() => {
3636
setName(previousName || '');
37-
}, [previousName]);
37+
setFile(undefined);
38+
}, [_id, previousName]);
3839

3940
const deleteCustomSound = useMethod('deleteCustomSound');
4041

0 commit comments

Comments
 (0)