Skip to content

Commit

Permalink
fix(#1447): change agent when validating records with annotation but …
Browse files Browse the repository at this point in the history
…default status (#1480)
  • Loading branch information
leiyre committed May 12, 2022
1 parent a5429c1 commit eadb3df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Expand Up @@ -86,11 +86,8 @@ export default {
return this.dataset.viewSettings.viewMode === "labelling-rules";
},
allowValidate() {
const isBinary =
this.dataset.labels.length === 2 && !this.dataset.isMultiLabel;
return (
this.record.status !== "Validated" &&
!isBinary &&
(this.record.annotation ||
this.record.prediction ||
this.dataset.isMultiLabel)
Expand Down
2 changes: 1 addition & 1 deletion frontend/database/modules/datasets.js
Expand Up @@ -492,8 +492,8 @@ const actions = {
const newRecords = records.map((record) => ({
...record,
annotation: {
agent,
...record.annotation,
agent,
},
selected: false,
status: "Validated",
Expand Down

0 comments on commit eadb3df

Please sign in to comment.