Skip to content

Commit 58655b2

Browse files
gurbirkalsiportante
authored andcommitted
Reference @metadata.controller_dir when querying result.json files from result server
1 parent e89fe49 commit 58655b2

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

web-server/v0.4/src/models/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default {
3737
});
3838
yield put({
3939
type: 'global/modifySelectedFields',
40-
payload: ['run.name', 'run.config', 'run.controller'],
40+
payload: ['run.name', 'run.config', 'run.controller', '@metadata.controller_dir'],
4141
});
4242
},
4343
*fetchSearchResults({ payload }, { call, put }) {

web-server/v0.4/src/pages/Results/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ class Results extends Component {
5050
const { dispatch, results } = this.props;
5151
const selectedRows = [];
5252
selectedRowKeys.forEach(key => {
53-
selectedRows.push(results[key]);
53+
const selectedKey = results.find(result => result.key === key);
54+
selectedRows.push(selectedKey);
5455
});
5556
this.setState({ selectedRowKeys });
5657

web-server/v0.4/src/pages/Search/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class SearchList extends Component {
105105

106106
dispatch({
107107
type: 'global/updateSelectedFields',
108-
payload: ['run.name', 'run.config', 'run.controller'],
108+
payload: ['run.name', 'run.config', 'run.controller', '@metadata.controller_dir'],
109109
});
110110
};
111111

0 commit comments

Comments
 (0)