fix: audio annotations not being saved properly
ci/woodpecker/push/woodpecker Pipeline failed Details

feat/axum
Tomáš Mládek 2023-09-07 21:32:39 +02:00
parent 5284d9435e
commit 736c382e75
1 changed files with 7 additions and 4 deletions

View File

@ -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",