add blank judgement; fixed setstate in render bug
This commit is contained in:
@@ -57,6 +57,11 @@ export default class DetailFramework extends Component<
|
||||
title: navBar.ticketDetail,
|
||||
});
|
||||
getTicketInfo(this, this.props.id);
|
||||
const status = this.state.ticketInfo.status;
|
||||
this.setState({
|
||||
current: mapStatusStep.get(status) || 0,
|
||||
items: pt.get().ticketDetail.stepItems,
|
||||
});
|
||||
}
|
||||
|
||||
props: Readonly<DetailFrameworkProps> = {
|
||||
@@ -79,12 +84,6 @@ export default class DetailFramework extends Component<
|
||||
return <View>Request failed</View>;
|
||||
}
|
||||
|
||||
const status = this.state.ticketInfo.status;
|
||||
// this.setState({
|
||||
// current: mapStatusStep.get(status) || 0,
|
||||
// items: pt.get().ticketDetail.stepItems,
|
||||
// });
|
||||
|
||||
const elements: ShowElements = {
|
||||
device: this.props.isInfoShow['device'] ? (
|
||||
<View className='at-article__h1'>
|
||||
|
||||
Reference in New Issue
Block a user