Skip to content

Commit 12e18f9

Browse files
Add regressed instance ID update
add_ids_to_new_instances_and_delete_old() is needed for Object level Global attributes too. In local testing this solved the global attribute update context when saving the same global attributes without reloading
1 parent 46e096d commit 12e18f9

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

frontend/src/components/annotation/annotation_ui_factory.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,6 +1292,15 @@ export default Vue.extend({
12921292
video_data,
12931293
}
12941294
const [result, error] = await saveFileAnnotations(this.computed_project_string_id, this.root_file.id, payload)
1295+
1296+
AnnotationSavePrechecks.add_ids_to_new_instances_and_delete_old(
1297+
result,
1298+
false,
1299+
this.annotation_ui_context.compound_global_attributes_instance_list,
1300+
false,
1301+
false
1302+
)
1303+
12951304
this.root_file.instance_list = this.annotation_ui_context.compound_global_attributes_instance_list
12961305
if (error) {
12971306
console.error(error)

0 commit comments

Comments
 (0)