mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 22:10:15 -05:00
[web-src] Fix linting errors
This commit is contained in:
@@ -64,7 +64,7 @@ export default new Vuex.Store({
|
||||
|
||||
getters: {
|
||||
now_playing: state => {
|
||||
var item = state.queue.items.find(function (item) {
|
||||
const item = state.queue.items.find(function (item) {
|
||||
return item.id === state.player.item_id
|
||||
})
|
||||
return (item === undefined) ? {} : item
|
||||
@@ -167,7 +167,7 @@ export default new Vuex.Store({
|
||||
},
|
||||
[types.ADD_NOTIFICATION] (state, notification) {
|
||||
if (notification.topic) {
|
||||
var index = state.notifications.list.findIndex(elem => elem.topic === notification.topic)
|
||||
const index = state.notifications.list.findIndex(elem => elem.topic === notification.topic)
|
||||
if (index >= 0) {
|
||||
state.notifications.list.splice(index, 1, notification)
|
||||
return
|
||||
@@ -183,7 +183,7 @@ export default new Vuex.Store({
|
||||
}
|
||||
},
|
||||
[types.ADD_RECENT_SEARCH] (state, query) {
|
||||
var index = state.recent_searches.findIndex(elem => elem === query)
|
||||
const index = state.recent_searches.findIndex(elem => elem === query)
|
||||
if (index >= 0) {
|
||||
state.recent_searches.splice(index, 1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user