Skip to content

Commit ff98224

Browse files
authored
Fix for Issue# 234 : Test run list is not cleared on deleting the last build. (#152)
1 parent 4cdaf4c commit ff98224

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/TestRunList/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const TestRunList: React.FunctionComponent = () => {
9595

9696
return (
9797
<React.Fragment>
98-
<DataGrid
98+
{selectedBuildId && (<DataGrid
9999
rows={testRuns}
100100
columns={columnsDef}
101101
pageSize={10}
@@ -117,7 +117,7 @@ const TestRunList: React.FunctionComponent = () => {
117117
)
118118
);
119119
}}
120-
/>
120+
/>)}
121121
</React.Fragment>
122122
);
123123
};

src/contexts/build.context.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ function buildReducer(state: State, action: IAction): State {
7474
if (action.payload === null) {
7575
return {
7676
...state,
77+
selectedBuildId: null,
7778
selectedBuild: null,
7879
};
7980
} else {

0 commit comments

Comments
 (0)