Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Allow bulk annotation when records have Default status #2349

Merged

Conversation

leiyre
Copy link
Member

@leiyre leiyre commented Feb 15, 2023

Description

Allow bulk annotation when records have Default status

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have merged the original branch into my forked branch
  • follows the style guidelines of this project
  • I did a self-review of my code
  • My changes generate no new warnings

@@ -102,7 +102,7 @@ export default {
const labelsToSend = this.labelsFactoryBySingleOrMultiLabel(
labels,
labelsToRemove,
record.currentAnnotation?.labels
record.currentAnnotation?.labels || []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1/ Clean code : don't do too much thing in one line :
It's better to do the test before in a specific variable and pass this variable as argument

2/ it's a very little comment, but maybe you want to use nullish coallescing instead of || => record.currentAnnotation?.labels ?? []

@leiyre leiyre merged commit 94e8948 into feature/bulk-annotation-improvement Feb 15, 2023
@leiyre leiyre deleted the fix/bulk_annotation_default_status branch February 15, 2023 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants