Skip to content

Commit 8dcb2c8

Browse files
author
jpaten
committed
fix: renamed Error to MyError (#4309)
1 parent c882663 commit 8dcb2c8

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

pages/[entityListType]/[...params].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export default EntityDetailPage;
201201
* @returns catalog prefix.
202202
*/
203203
function getCatalogPrefix(defaultCatalog: string): string {
204-
//eslint-disable-next-line sonarjs/slow-regex -- catalog numbers should be short and are user provided
204+
//eslint-disable-next-line sonarjs/slow-regex -- catalog numbers should be short and are not user provided
205205
return defaultCatalog.replace(/\d.*$/, ""); //TODO - are all catalog numbers less than a maximum length? could remove eslint ignore
206206
}
207207

pages/_error.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ interface ErrorProps {
66
error?: Error | null;
77
}
88

9-
// eslint-disable-next-line sonarjs/no-globals-shadowing -- TODO not sure of reason for this
10-
const Error: NextPage<ErrorProps> = ({ error }: ErrorProps) => {
9+
const MyError: NextPage<ErrorProps> = ({ error }: ErrorProps) => {
1110
const { config } = useConfig();
1211

1312
return error ? (
@@ -17,8 +16,8 @@ const Error: NextPage<ErrorProps> = ({ error }: ErrorProps) => {
1716
);
1817
};
1918

20-
Error.getInitialProps = ({ err }: NextPageContext): ErrorProps => {
19+
MyError.getInitialProps = ({ err }: NextPageContext): ErrorProps => {
2120
return { error: err };
2221
};
2322

24-
export default Error;
23+
export default MyError;

playwright_anvil.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ const config: PlaywrightTestConfig = {
3333
timeout: 240 * 1000,
3434
url: "http://localhost:3000/",
3535
},
36-
workers: "50%",
36+
workers: "75%",
3737
};
3838
export default config;

0 commit comments

Comments
 (0)