From 6f2394a21f357c4eaa1f2bab97a44a8f620b4979 Mon Sep 17 00:00:00 2001 From: Nicolas Molina Date: Thu, 29 Aug 2024 16:55:03 -0400 Subject: [PATCH] chore(primeng) fix sonar issue --- core-web/.eslintrc.base.json | 1 + .../dot-content-types-listing/dot-content-types.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core-web/.eslintrc.base.json b/core-web/.eslintrc.base.json index 84cc8aef2a39..08129acf438b 100644 --- a/core-web/.eslintrc.base.json +++ b/core-web/.eslintrc.base.json @@ -32,6 +32,7 @@ "ignoredFiles": ["{projectRoot}/rollup.config.{js,ts,mjs,mts}"] } ], + "@typescript-eslint/no-misused-promises": "error", "@typescript-eslint/keyword-spacing": [ "error", { diff --git a/core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-listing/dot-content-types.component.ts b/core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-listing/dot-content-types.component.ts index 54154ab99d56..15159200c7e3 100644 --- a/core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-listing/dot-content-types.component.ts +++ b/core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-listing/dot-content-types.component.ts @@ -240,8 +240,8 @@ export class DotContentTypesPortletComponent implements OnInit, OnDestroy { actions.push({ menuItem: { label: this.dotMessageService.get('contenttypes.content.copy'), - command: async (item: DotCMSContentType) => { - await this.showCloneContentTypeDialog(item); + command: (item: DotCMSContentType) => { + this.showCloneContentTypeDialog(item); } } });