chore: Add eslint-unicorn & fix

This commit is contained in:
Sidharth Vinod
2022-11-23 01:05:08 +05:30
parent 8116c8b40d
commit 7f4368415d
60 changed files with 494 additions and 539 deletions

View File

@@ -21,7 +21,7 @@ export const labelHelper = (parent, node, _classes, isNode) => {
// Replace labelText with default value if undefined
let labelText;
if (typeof node.labelText === 'undefined') {
if (node.labelText === undefined) {
labelText = '';
} else {
labelText = typeof node.labelText === 'string' ? node.labelText : node.labelText[0];