diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml
index f15e3c8..482bc83 100644
--- a/.github/workflows/playwright.yml
+++ b/.github/workflows/playwright.yml
@@ -31,7 +31,7 @@ jobs:
VRT_BRANCHNAME: ${{ github.head_ref || github.ref_name }}
VRT_CIBUILDID: "Github run_id: ${{ github.run_id }}"
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
diff --git a/src/components/TestRunList/BulkOperation.tsx b/src/components/TestRunList/BulkOperation.tsx
index 974689d..c801760 100644
--- a/src/components/TestRunList/BulkOperation.tsx
+++ b/src/components/TestRunList/BulkOperation.tsx
@@ -47,7 +47,10 @@ export const BulkOperation: React.FunctionComponent = () => {
);
const isMerge: boolean = React.useMemo(
- () => !!rows.find((row: GridRowModel) => selectedIds.includes(row.id.toString()))?.model.merge,
+ () =>
+ !!rows.find((row: GridRowModel) =>
+ selectedIds.includes(row.id.toString()),
+ )?.model.merge,
[selectedIds, rows],
);
@@ -268,7 +271,9 @@ export const BulkOperation: React.FunctionComponent = () => {
onCancel={dismissDialog}
content={
- {`Are you sure you want to ${submitButtonText().toLowerCase()} ${selectedRows.length} items?`}
+ {`Are you sure you want to ${submitButtonText().toLowerCase()} ${
+ selectedRows.length
+ } items?`}
}
onSubmit={() => {
diff --git a/src/components/TestRunList/index.tsx b/src/components/TestRunList/index.tsx
index bf2cf99..b762416 100644
--- a/src/components/TestRunList/index.tsx
+++ b/src/components/TestRunList/index.tsx
@@ -156,58 +156,49 @@ const TestRunList: React.FunctionComponent = () => {
}
unsubscribe?.();
};
- return apiRef.current.subscribeEvent?.(
+ return apiRef.current?.subscribeEvent?.(
"stateChange",
() =>
- (unsubscribe = apiRef.current.subscribeEvent(
+ (unsubscribe = apiRef.current?.subscribeEvent(
"stateChange",
handleStateChange,
)),
);
- }, [apiRef, apiRef.current.instanceId]);
+ }, [apiRef, apiRef.current?.instanceId]);
if (selectedBuild) {
return (
-
- setSortModel(model)}
- onRowClick={(param: GridRowParams) => {
- navigate(
- buildTestRunLocation(
- selectedBuild.id,
- param.row["id"].toString(),
- ),
- );
- }}
- />
-
+ setSortModel(model)}
+ onRowClick={(param: GridRowParams) => {
+ navigate(
+ buildTestRunLocation(selectedBuild.id, param.row["id"].toString()),
+ );
+ }}
+ />
);
}
- return (
-
- Select build from list
-
- );
+ return Select build from list;
};
export default TestRunList;
diff --git a/vite.config.ts b/vite.config.ts
index 6be5f52..bd5c683 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -21,6 +21,5 @@ export default defineConfig({
// When false, all CSS will be extracted into a single CSS file.
cssCodeSplit: false,
-
},
});