kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Resolve "Invalid prop: type check failed for prop "index". Expected Number with value NaN, got Undefined" NOCHANGELOG
rodzic
57ca334887
commit
75e717785a
|
@ -437,6 +437,7 @@ const coverType = useStorage('queue:cover-type', CoverType.COVER_ART)
|
|||
>
|
||||
<template #default="{ index, item, classlist }">
|
||||
<queue-item
|
||||
v-if="index !== undefined"
|
||||
:data-index="index"
|
||||
:index="index"
|
||||
:source="item"
|
||||
|
|
|
@ -31,7 +31,12 @@ const equalizerFilters = [
|
|||
let lastNode: IAudioNode<IAudioContext> | null = null
|
||||
export const connectAudioSource = (sourceNode: IAudioNode<IAudioContext>) => {
|
||||
for (const filter of equalizerFilters) {
|
||||
lastNode?.disconnect(filter)
|
||||
try {
|
||||
lastNode?.disconnect(filter)
|
||||
} catch (e) {
|
||||
// NOTE: The error is probably InvalidAccessError, because the nodes aren't connected. We just ignore it.
|
||||
}
|
||||
|
||||
sourceNode.connect(filter)
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue