Misc Fixes and Better Logging/Rejection Messages for Track Import

This commit is contained in:
Qstick 2018-02-15 23:03:44 -05:00
parent 425a9045b8
commit 8e626269d1
9 changed files with 24 additions and 46 deletions

View file

@ -218,16 +218,12 @@ class SignalRConnector extends Component {
}
handleTrack = (body) => {
const action = body.action;
const section = 'tracks';
if (action === 'updated') {
if (body.action === 'updated') {
this.props.updateItem({
section,
section: 'tracks',
updateOnly: true,
...body.resource
});
} else if (action === 'deleted') {
this.props.removeItem({ section, id: body.resource.id });
}
}