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: Fn hasQualifications was returning true for null / undefined values #1570

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

JF-Cozy
Copy link
Contributor

@JF-Cozy JF-Cozy commented Dec 9, 2024

No description provided.

@@ -617,7 +617,7 @@ export const isPlainText = (mimeType = '', fileName = '') => {
* @returns {boolean}
*/
export const hasQualifications = file => {
return has(file, 'metadata.qualification')
return !!get(file, 'metadata.qualification')
Copy link
Member

Choose a reason for hiding this comment

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

nit: On pourrait en profiter pour doucement se séparer de Lodash pour ce genre de chose ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

peut-être qu'on pourrait faire une passe générale sur le sujet

@JF-Cozy JF-Cozy merged commit ac082de into master Dec 10, 2024
3 checks passed
@JF-Cozy JF-Cozy deleted the fix/VER-1144 branch December 10, 2024 08:20
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.

3 participants