diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-03 19:57:52 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-03 19:57:52 +0200 |
| commit | e21538fe99277d31cacde6f8596a24156faaefd7 (patch) | |
| tree | bae27c4e55542546ab73aadb19468c466057ac2a /public/bundle.js | |
| parent | c05a918de5f52b0333da4ab3e96b0a76611fe101 (diff) | |
datasettes
Diffstat (limited to 'public/bundle.js')
| -rw-r--r-- | public/bundle.js | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/public/bundle.js b/public/bundle.js index f440f4d..4b68572 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -4918,7 +4918,6 @@ var SampleRNNDatasets = function (_Component) { var _this = _possibleConstructorReturn(this, (SampleRNNDatasets.__proto__ || Object.getPrototypeOf(SampleRNNDatasets)).call(this, props)); - console.log('ba'); _this.fileOptions = _this.fileOptions.bind(_this); _this.pickFile = _this.pickFile.bind(_this); return _this; @@ -4928,7 +4927,6 @@ var SampleRNNDatasets = function (_Component) { key: 'componentWillMount', value: function componentWillMount() { var id = this.props.id || this.props.match.params.id || localStorage.getItem('samplernn.last_id'); - console.log(id); console.log('load dataset:', id); var _props = this.props, match = _props.match, @@ -4937,9 +4935,8 @@ var SampleRNNDatasets = function (_Component) { if (id === 'new') return; if (id) { - localStorage.setItem('samplernn.last_id', id); + if (parseInt(id)) localStorage.setItem('samplernn.last_id', id); if (!samplernn.folder || samplernn.folder.id !== id) { - console.log('load directories'); actions.load_directories(id); } } @@ -4999,7 +4996,6 @@ var SampleRNNDatasets = function (_Component) { var id = this.props.id || localStorage.getItem('samplernn.last_id'); console.log(this.props.id); - if (this.props.id && this.props.id !== 'new') return null; if (samplernn.loading) { console.log('loading'); return (0, _preact.h)( @@ -5008,7 +5004,8 @@ var SampleRNNDatasets = function (_Component) { 'Loading' ); } - if (!samplernn.folder || !samplernn.data.folders.length) { + console.log(samplernn); + if (!samplernn.data.folder || !samplernn.data.folders.length) { console.log('no folders, redirect to /new'); return history.push('/samplernn/new/'); } @@ -6162,16 +6159,12 @@ var SampleRNNShow = function (_Component) { function SampleRNNShow() { _classCallCheck(this, SampleRNNShow); - var _this = _possibleConstructorReturn(this, (SampleRNNShow.__proto__ || Object.getPrototypeOf(SampleRNNShow)).call(this)); - - console.log('piss'); - return _this; + return _possibleConstructorReturn(this, (SampleRNNShow.__proto__ || Object.getPrototypeOf(SampleRNNShow)).apply(this, arguments)); } _createClass(SampleRNNShow, [{ key: 'render', value: function render() { - console.log('dick'); return (0, _preact.h)(_samplernn3.default, { id: this.props.match.params.id }); |
