From 3af7f359793469b3565a8088334b2a1e18d2902d Mon Sep 17 00:00:00 2001 From: jpaten Date: Thu, 2 Jan 2025 17:58:50 -0800 Subject: [PATCH] fix: renamed Error to MyError (#4309) --- pages/[entityListType]/[...params].tsx | 2 +- pages/_error.tsx | 7 +++---- playwright_anvil.config.ts | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/pages/[entityListType]/[...params].tsx b/pages/[entityListType]/[...params].tsx index c2e200786..f58b8bf58 100644 --- a/pages/[entityListType]/[...params].tsx +++ b/pages/[entityListType]/[...params].tsx @@ -201,7 +201,7 @@ export default EntityDetailPage; * @returns catalog prefix. */ function getCatalogPrefix(defaultCatalog: string): string { - //eslint-disable-next-line sonarjs/slow-regex -- catalog numbers should be short and are user provided + //eslint-disable-next-line sonarjs/slow-regex -- catalog numbers should be short and are not user provided return defaultCatalog.replace(/\d.*$/, ""); //TODO - are all catalog numbers less than a maximum length? could remove eslint ignore } diff --git a/pages/_error.tsx b/pages/_error.tsx index ba7c9e074..9fa1eeb82 100644 --- a/pages/_error.tsx +++ b/pages/_error.tsx @@ -6,8 +6,7 @@ interface ErrorProps { error?: Error | null; } -// eslint-disable-next-line sonarjs/no-globals-shadowing -- TODO not sure of reason for this -const Error: NextPage = ({ error }: ErrorProps) => { +const MyError: NextPage = ({ error }: ErrorProps) => { const { config } = useConfig(); return error ? ( @@ -17,8 +16,8 @@ const Error: NextPage = ({ error }: ErrorProps) => { ); }; -Error.getInitialProps = ({ err }: NextPageContext): ErrorProps => { +MyError.getInitialProps = ({ err }: NextPageContext): ErrorProps => { return { error: err }; }; -export default Error; +export default MyError; diff --git a/playwright_anvil.config.ts b/playwright_anvil.config.ts index 51f34b6ab..13dd6478f 100644 --- a/playwright_anvil.config.ts +++ b/playwright_anvil.config.ts @@ -33,6 +33,6 @@ const config: PlaywrightTestConfig = { timeout: 240 * 1000, url: "http://localhost:3000/", }, - workers: "50%", + workers: "75%", }; export default config;