mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
refactor: Run lintfix (no-changelog) (#7537)
- Fix autofixable violations - Remove unused directives - Allow for PascalCased variables - needed for dynamically imported or assigned classes, decorators, routers, etc.
This commit is contained in:
@@ -170,7 +170,7 @@ export default defineComponent({
|
||||
.replace(/%%PARAMETER_FULL%%/g, parameterFullName);
|
||||
},
|
||||
getErrorDescription(): string {
|
||||
if (!this.error.context || !this.error.context.descriptionTemplate) {
|
||||
if (!this.error.context?.descriptionTemplate) {
|
||||
return sanitizeHtml(this.error.description);
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ export default defineComponent({
|
||||
getErrorMessage(): string {
|
||||
const baseErrorMessage = this.$locale.baseText('nodeErrorView.error') + ': ';
|
||||
|
||||
if (!this.error.context || !this.error.context.messageTemplate) {
|
||||
if (!this.error.context?.messageTemplate) {
|
||||
return baseErrorMessage + this.error.message;
|
||||
}
|
||||
|
||||
@@ -200,7 +200,7 @@ export default defineComponent({
|
||||
throw new Error();
|
||||
}
|
||||
|
||||
if (fullPath === false) {
|
||||
if (!fullPath) {
|
||||
return parameters.pop()!.displayName;
|
||||
}
|
||||
return parameters.map((parameter) => parameter.displayName).join(' > ');
|
||||
|
||||
Reference in New Issue
Block a user