Skip to content

Commit c21628b

Browse files
deekshithvarma256ArchanaArige
authored andcommitted
bugFixes for the release
Signed-off-by: deekshithvarma256 <[email protected]>
1 parent c0de903 commit c21628b

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

app/passport/local-login.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const localLoginStrategy = function(platform) {
4141
network: reqUser.network
4242
};
4343

44-
const token = await jwtSignAsync(payload, config.jwt.secret, {
44+
const token: any = await jwtSignAsync(payload, config.jwt.secret, {
4545
expiresIn: config.jwt.expiresIn
4646
});
4747
const data = {

client/src/components/Lists/Chaincodes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export class Chaincodes extends Component {
156156
defaultPageSize={5}
157157
filterable
158158
minRows={0}
159-
showPagination={chaincodeList.length >= 5}
159+
showPagination={chaincodeList?.length >= 5}
160160
/>
161161
<Dialog
162162
open={dialogOpen}

client/src/components/Lists/Transactions.js

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ export class Transactions extends Component {
126126
getTransaction('ChannelNotSpecified', this.props.transactionId);
127127
this.setState({ directLinkSearchResultsFlag: true });
128128
}
129-
const { transactionList } = this.props;
129+
// const { transactionList } = this.props;
130130
const selection = {};
131-
transactionList.forEach(element => {
132-
selection[element.blocknum] = false;
133-
});
131+
// transactionList.forEach(element => {
132+
// selection[element.blocknum] = false;
133+
// });
134134
const opts = [];
135135
this.props.transactionByOrg.forEach(val => {
136136
opts.push({ label: val.creator_msp_id, value: val.creator_msp_id });
@@ -139,22 +139,21 @@ export class Transactions extends Component {
139139
this.handleSearch();
140140
}
141141

142-
componentWillReceiveProps(nextProps) {
142+
componentDidUpdate(prevProps,prevState) {
143143
if (
144144
this.state.search &&
145-
nextProps.currentChannel !== this.props.currentChannel
145+
this.props.currentChannel !== prevProps.currentChannel
146146
) {
147147
if (this.interval !== undefined) {
148148
clearInterval(this.interval);
149149
}
150150
this.interval = setInterval(() => {
151-
this.searchTransactionList(nextProps.currentChannel);
151+
this.searchTransactionList(this.props.currentChannel);
152152
}, 60000);
153-
this.searchTransactionList(nextProps.currentChannel);
153+
this.searchTransactionList(this.props.currentChannel);
154154
}
155-
}
156-
componentDidUpdate(prevProps,prevState) {
157155
if(prevState.page!=this.state.page || prevState.rowsPerPage!=this.state.rowsPerPage || this.state.searchClick){
156+
this.setState({ searchClick: false });
158157
this.handleSearch();
159158
}
160159
}
@@ -226,7 +225,7 @@ export class Transactions extends Component {
226225
this.searchTransactionList();
227226
}, 60000);
228227
await this.searchTransactionList();
229-
this.setState({ search: true, searchClick: false });
228+
this.setState({ search: true });
230229
if (this.props.transactionId) {
231230
this.setState({ directLinkSearchResultsFlag: false });
232231
const { getTransaction } = this.props;
@@ -436,7 +435,7 @@ export class Transactions extends Component {
436435
className={classes.searchButton}
437436
color="success"
438437
disabled={this.state.err || (!this.state.from != !this.state.to)}
439-
onClick={async () => {
438+
onClick={() => {
440439
this.setState({page:0, searchClick:true, queryFlag: true, defaultQuery: false })
441440
}}
442441
>

client/src/state/redux/tables/operations.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const chaincodeList = channel => dispatch =>
4040
);
4141
} else if (resp.status === 400) {
4242
dispatch(actions.getErroMessage(resp.error));
43+
} else {
4344
dispatch(actions.getChaincodeList(resp));
4445
}
4546
})

client/src/state/redux/tables/selectors.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const chaincodeMetaDataSelector = state =>state.tables.chaincodeMetaData.
1111
export const transactionSelector = state => state.tables.transaction.transaction;
1212
export const transactionListSelector = state => state.tables.transactionList.rows;
1313
export const transactionListSearchSelector = state => state.tables.transactionListSearch.rows;
14+
export const transactionListTotalPagesSelector = state =>state.tables.transactionList.noOfpages;
1415
export const transactionListSearchTotalPagesSelector = state => state.tables.transactionListSearch.noOfpages;
1516
export const transactionListSearchPageParamSelector = state => state.tables.transactionListSearch.pageParams;
1617
export const transactionListSearchQuerySelector = state => state.tables.transactionListSearch.query;

0 commit comments

Comments
 (0)