mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-5991] ESLint fixes and code quality improvements (#8893)
* prefer-optional-chain: core * prefer-optional-chain: content, fix typings * prefer-optional-chain: process, fix typings * prefer-optional-chain: process-cloud, fix typings, fix ts configs and eslint * [ci: force] sonar errors fixes, insights lib * [ci:force] fix security issues * [ci:force] fix metadata e2e bug, js assignment bugs * [ci:force] fix lint issue * [ci:force] fix tests
This commit is contained in:
@@ -22,7 +22,6 @@ import { NodeEntry } from '@alfresco/js-api';
|
||||
name: 'adfNodeNameTooltip'
|
||||
})
|
||||
export class NodeNameTooltipPipe implements PipeTransform {
|
||||
|
||||
transform(node: NodeEntry): string {
|
||||
if (node) {
|
||||
return this.getNodeTooltip(node);
|
||||
@@ -46,18 +45,17 @@ export class NodeNameTooltipPipe implements PipeTransform {
|
||||
}
|
||||
|
||||
private getNodeTooltip(node: NodeEntry): string {
|
||||
if (!node || !node.entry) {
|
||||
if (!node?.entry) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const { entry: { properties, name } } = node;
|
||||
const lines = [ name ];
|
||||
const {
|
||||
entry: { properties, name }
|
||||
} = node;
|
||||
const lines = [name];
|
||||
|
||||
if (properties) {
|
||||
const {
|
||||
'cm:title': title,
|
||||
'cm:description': description
|
||||
} = properties;
|
||||
const { 'cm:title': title, 'cm:description': description } = properties;
|
||||
|
||||
if (title && description) {
|
||||
lines[0] = title;
|
||||
|
Reference in New Issue
Block a user