|
@@ -47,7 +47,7 @@ class Thread extends React.Component {
|
47
|
47
|
loggedUser: props.data ? props.data.loggedUser : debug.loggedUser,
|
48
|
48
|
workspace: props.data ? props.data.workspace : debug.workspace,
|
49
|
49
|
content: props.data ? props.data.content : debug.content,
|
50
|
|
- listMessage: props.data ? props.data.content.message_list : debug.listMessage,
|
|
50
|
+ listMessage: props.data ? [] : debug.listMessage,
|
51
|
51
|
appConfig: props.data ? props.data.appConfig : debug.appConfig
|
52
|
52
|
}
|
53
|
53
|
|
|
@@ -77,7 +77,13 @@ class Thread extends React.Component {
|
77
|
77
|
fetchResultThread.json = await handleFetchResult(fetchResultThread)
|
78
|
78
|
|
79
|
79
|
this.setState({
|
80
|
|
- content: fetchResultThread.json
|
|
80
|
+ content: {
|
|
81
|
+ id: fetchResultThread.json.id,
|
|
82
|
+ status: fetchResultThread.json.status,
|
|
83
|
+ title: fetchResultThread.json.title,
|
|
84
|
+ type: fetchResultThread.json.type
|
|
85
|
+ },
|
|
86
|
+ listMessage: fetchResultThread.json.message_list
|
81
|
87
|
})
|
82
|
88
|
}
|
83
|
89
|
|