From 473b2b0b2c5ebe4ad825067e83487f1eb0e796a4 Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Tue, 29 Aug 2017 08:35:26 +1200 Subject: [PATCH] Using @@ as track key separator; Fixes #183 --- src/js/components/TrackList.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/js/components/TrackList.js b/src/js/components/TrackList.js index ff5630fd..ab0314d5 100755 --- a/src/js/components/TrackList.js +++ b/src/js/components/TrackList.js @@ -300,10 +300,10 @@ class TrackList extends React.Component{ **/ buildTrackKey(track, index){ let key = index - key += '_'+(track.tlid ? track.tlid : 'none') - key += '_'+track.uri - key += '_'+(this.props.uri ? this.props.uri : 'none') - key += '_'+(this.props.context ? this.props.context : 'none') + key += '@@'+(track.tlid ? track.tlid : 'none') + key += '@@'+track.uri + key += '@@'+(this.props.uri ? this.props.uri : 'none') + key += '@@'+(this.props.context ? this.props.context : 'none') return key } @@ -331,7 +331,7 @@ class TrackList extends React.Component{ // This is enough to perform interactions (dragging, selecting, etc) let array = [] for (let i = 0; i < keys.length; i++){ - let key = keys[i].split('_') + let key = keys[i].split('@@') if (indexes_only){ array.push(key[0])