mirror of
https://github.com/mgerb/go-discord-bot
synced 2026-01-11 09:32:50 +00:00
update soundlist on upload
This commit is contained in:
@@ -54,6 +54,10 @@ export default class Soundboard extends React.Component {
|
||||
uploaded: true,
|
||||
uploadError: " ",
|
||||
});
|
||||
|
||||
// reset sound list cache and load the new list
|
||||
this.refs.SoundList.soundListCache = undefined;
|
||||
this.refs.SoundList.getSoundList();
|
||||
}).catch((err) => {
|
||||
this.setState({
|
||||
percentCompleted: 0,
|
||||
@@ -73,7 +77,7 @@ export default class Soundboard extends React.Component {
|
||||
return (
|
||||
<div className="Soundboard">
|
||||
<div className="column">
|
||||
<SoundList/>
|
||||
<SoundList ref="SoundList"/>
|
||||
</div>
|
||||
|
||||
<div className="column">
|
||||
|
||||
Reference in New Issue
Block a user