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); } } });