diff --git a/public/script.js b/public/script.js
index 58392d3..75d84e8 100644
--- a/public/script.js
+++ b/public/script.js
@@ -17,24 +17,24 @@ function getHashParams() {
var Duplicate = React.createClass({
render: function () {
var authors = "";
- this.props.data.artists.forEach(function (item, index) {
+ this.props.track.artists.forEach(function (item, index) {
if (index != 0) {
authors += ', ';
}
authors += item.name;
});
return (
-
{this.props.data.name} - {authors}
+ {this.props.track.name} - {authors}
);
}
});
var DuplicatesBox = React.createClass({
render: function () {
- if (this.props.data && this.props.data.length > 0) {
- var duplicates = this.props.data.map(function (duplicate) {
+ if (this.props.dups && this.props.dups.length > 0) {
+ var duplicates = this.props.dups.map(function (duplicate) {
return (
-
+
);
});
return (
@@ -65,8 +65,8 @@ var PlaylistBox = React.createClass({
render: function () {
var currentId = this.state.currentId;
var playlists;
- if (this.props.data) {
- playlists = this.props.data.map(function (pl) {
+ if (this.props.playlists) {
+ playlists = this.props.playlists.map(function (pl) {
var id = pl.id;
var classes = "list-group-item" + (currentId == id ? " active" : "");
return (
@@ -119,13 +119,13 @@ var DuplicateFinderBox = React.createClass({
render: function () {
var duplicates = Loading...
;
if (!this.state.loading) {
- duplicates = ;
+ duplicates = ;
}
return (