remove extra console.log call
This commit is contained in:
parent
7f2e12e913
commit
e25301655b
|
@ -26,14 +26,12 @@ export const state = reactive({
|
||||||
source.addEventListener("open", () => console.debug("opened event source"))
|
source.addEventListener("open", () => console.debug("opened event source"))
|
||||||
source.addEventListener('message', event => console.log(event))
|
source.addEventListener('message', event => console.log(event))
|
||||||
source.addEventListener('TickAdded', event => {
|
source.addEventListener('TickAdded', event => {
|
||||||
console.log(event)
|
|
||||||
const tick: Tick = Tick.fromJSON(JSON.parse(event.data))
|
const tick: Tick = Tick.fromJSON(JSON.parse(event.data))
|
||||||
const tracks = this.tracks.map(track => {
|
const tracks = this.tracks.map(track => {
|
||||||
if (track.id === tick.track_id) {
|
if (track.id === tick.track_id) {
|
||||||
const ticks = track.ticks ?? []
|
const ticks = track.ticks ?? []
|
||||||
ticks.push(tick)
|
ticks.push(tick)
|
||||||
track.ticks = ticks
|
track.ticks = ticks
|
||||||
|
|
||||||
}
|
}
|
||||||
return track
|
return track
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue