Skip to content

Commit

Permalink
swap collection info order in try/catch
Browse files Browse the repository at this point in the history
  • Loading branch information
birm authored Jul 12, 2024
1 parent dc1e47a commit 9d455f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/labeling/labelingSimpleAnnotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,8 @@ async function saveAnnotation(annotation) {
// const creator = getUserId();
const creator = $USER;
try {
annotation.collectionName = (await $CAMIC.store.getCollection($CAMIC.slideData.collections[0]))[0].name;
annotation.collectionId= $CAMIC.slideData.collections[0];
annotation.collectionName = (await $CAMIC.store.getCollection($CAMIC.slideData.collections[0]))[0].name;
} catch (err) {
console.error(err);
}
Expand Down

0 comments on commit 9d455f5

Please sign in to comment.