fix: audio annotations not being saved properly
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
parent
5284d9435e
commit
736c382e75
|
@ -79,6 +79,7 @@
|
|||
}
|
||||
|
||||
async function updateAnnotation(region: Region) {
|
||||
dbg("Updating annotation %o", region);
|
||||
let entity = region.attributes["upend-address"];
|
||||
|
||||
// Newly created
|
||||
|
@ -100,10 +101,12 @@
|
|||
} as any);
|
||||
}
|
||||
|
||||
await api.putEntityAttribute(entity, ATTR_LABEL, {
|
||||
t: "String",
|
||||
c: region.attributes["label"],
|
||||
});
|
||||
if (region.attributes["label"]) {
|
||||
await api.putEntityAttribute(entity, ATTR_LABEL, {
|
||||
t: "String",
|
||||
c: region.attributes["label"],
|
||||
});
|
||||
}
|
||||
|
||||
await api.putEntityAttribute(entity, "ANNOTATES", {
|
||||
t: "Address",
|
||||
|
|
Loading…
Reference in New Issue