Skip to content

Commit

Permalink
Fix: row id was used incorrectly for generation campaigns
Browse files Browse the repository at this point in the history
  • Loading branch information
kasnerz committed Nov 6, 2024
1 parent 4d9748b commit 7e6b222
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion factgenie/static/js/campaigns.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,11 +415,12 @@ function showResult(payload, campaignId) {
$(`#metadata-example-cnt-${campaignId}`).html(`${finished_examples} / ${total_examples}`);
console.log(`Progress: ${progress}%`);


// update the annotation button
const example = payload.response;
const dataset = example.dataset;
const split = example.split;
const setup_id = example.setup_id;
const setup_id = example.setup_id || campaignId;
const example_idx = example.example_idx;
const rowId = `${dataset}-${split}-${setup_id}-${example_idx}`;
const annotation_button = $(`#annotBtn${rowId}`);
Expand Down

0 comments on commit 7e6b222

Please sign in to comment.