summaryrefslogtreecommitdiff
path: root/frontend/app/views/graph/components/audio.list.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-03-17 11:54:58 +0100
committerJules Laplace <julescarbon@gmail.com>2021-03-17 11:54:58 +0100
commit92566ba17f5e921d5bff1f3fb4e4b0d92ca4fd39 (patch)
tree86218c2b312bff858efd0fe5afb3206ecbf781e7 /frontend/app/views/graph/components/audio.list.js
parent6d435be9facbc5e4badc0f310c4199b113dc1aec (diff)
audio select
Diffstat (limited to 'frontend/app/views/graph/components/audio.list.js')
-rw-r--r--frontend/app/views/graph/components/audio.list.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/frontend/app/views/graph/components/audio.list.js b/frontend/app/views/graph/components/audio.list.js
index b7bf19a..011ab08 100644
--- a/frontend/app/views/graph/components/audio.list.js
+++ b/frontend/app/views/graph/components/audio.list.js
@@ -3,6 +3,7 @@ import { Link } from 'react-router-dom'
import { connect } from 'react-redux'
import { history } from 'app/store'
+import { unslugify } from 'app/utils'
import actions from 'app/actions'
class AudioList extends Component {
@@ -132,8 +133,6 @@ class AudioList extends Component {
}
}
-const unslugify = fn => fn.replace(/-/g, ' ').replace(/_/g, ' ').replace('.mp3', '')
-
const mapStateToProps = state => ({
graph: state.graph.show.res,
})