fix: unresolved audio annotations labels
parent
c4fbb0bcbc
commit
ddb7af116b
|
@ -94,10 +94,7 @@
|
||||||
const label = `Annotation #${nextAnnotationIndex}`;
|
const label = `Annotation #${nextAnnotationIndex}`;
|
||||||
|
|
||||||
region.update({
|
region.update({
|
||||||
attributes: {
|
attributes: { label },
|
||||||
"upend-address": entity,
|
|
||||||
label,
|
|
||||||
},
|
|
||||||
} as any); // incorrect types, `update()` does take `attributes`
|
} as any); // incorrect types, `update()` does take `attributes`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,6 +123,12 @@
|
||||||
if (Object.values(region.data).length) {
|
if (Object.values(region.data).length) {
|
||||||
await putEntityAttribute(entity, "NOTE", region.data as IValue);
|
await putEntityAttribute(entity, "NOTE", region.data as IValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
region.update({
|
||||||
|
attributes: {
|
||||||
|
"upend-address": entity,
|
||||||
|
},
|
||||||
|
} as any);
|
||||||
}
|
}
|
||||||
const updateAnnotationDebounced = debounce(updateAnnotation, 250);
|
const updateAnnotationDebounced = debounce(updateAnnotation, 250);
|
||||||
|
|
||||||
|
@ -243,7 +246,7 @@
|
||||||
console.warn(`Failed to load peaks: ${e}`);
|
console.warn(`Failed to load peaks: ${e}`);
|
||||||
const entity = await fetchEntity(address);
|
const entity = await fetchEntity(address);
|
||||||
if (
|
if (
|
||||||
(entity.get("FILE_SIZE") || 0) < 20_000_000 ||
|
(parseInt(String(entity.get("FILE_SIZE"))) || 0) < 20_000_000 ||
|
||||||
confirm(
|
confirm(
|
||||||
$i18n.t(
|
$i18n.t(
|
||||||
"File is large (>20 MiB) and UpEnd failed to load waveform from server. Generating the waveform locally may slow down your browser. Do you wish to proceed anyway?"
|
"File is large (>20 MiB) and UpEnd failed to load waveform from server. Generating the waveform locally may slow down your browser. Do you wish to proceed anyway?"
|
||||||
|
|
Loading…
Reference in New Issue